RSS Feed/News "listitemclass" attribute has no effect in checkbox choice formatter

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
28,247
Points
823

Reputation:

The listitemclassattribute in the checkbox tag processor is ignored. This attribute is expected to behave similarly to the radio tag processor.

Checkbox renderer does not call processAttributeToNamedHtmlAttribute() for listitemclass. Instead, it hardcodes the class as inputChoices-choice in the li element:

Radio renderer:

PHP:

Code:
    public function formRadio(array $controlOptions, array $choices)
    {
         ....
        $choiceFormatter = function (array $choice, array...

Read more

Continue reading...
 
Status
Not open for further replies.
Top