macro {input} cannot modify class
Notice: This thread is very old.
- DOBss
- Member | 24
In the latest version of nette (2.1.1) there is no way to change the class of
a checkbox input in the template. I tried
both the {input name class => active}
and
{input name, class => active}
too, nothing changed. The only way
in this version was to do it from the presenter while creating the
component.
$items->addCheckbox('active')->getControlPrototype()->class('active');
Please have a look.
PS – there is no problem with text, hidden and select inputs.
- David Grudl
- Nette Core | 8218
Checkboxes in 2.1 require colons after name:
{input name: class => active}