-
-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot add attributes to Checkbox #126
Comments
Better way is to use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is currently not possible to add HTML attributes to checkboxes using
{input foo, 'class' => 'bar'}
Latte macro. The reason isgetControl
method ofCheckbox
returns a wrapper HTML object instead of the input itself.Rewriting getControl method to
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.
The text was updated successfully, but these errors were encountered: