You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is currently not possible to add HTML attributes to checkboxes using {input foo, 'class' => 'bar'} Latte macro. The reason is getControl method of Checkbox returns a wrapper HTML object instead of the input itself.
at least fixes the ability to add attributes to the wrapper element (maybe this is disabled on purpose to avoid confusion). But anyway adding attributes to checkbox input elements is not currently possible.
Activity
dg commentedon Jun 21, 2017
Better way is to use
<input n:name=foo class=bar>