Skip to content
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

Adding classes to 'select' elements(drop-downs), checkboxes, and radio buttons is not currently supported. #137

Closed
Shad0wLi0n opened this issue Feb 20, 2015 · 3 comments

Comments

@Shad0wLi0n
Copy link

The "fieldHtmlClass" function does not support select elements or their options as well as checkboxes and radio buttons. It would be nice to add classes to these elements.

@ulion
Copy link
Contributor

ulion commented Feb 21, 2015

if you checkout my fork, you will found the select field type do support
fieldHtmlClass.
the checkboxes and radios types do not support it. but you can always give
any form definition an "id", then you can always use the id to css the
fields you want affect.
and htmlClass is also a possibility, or more generally
"[data-jsonform-type=typename]" in my fork to css certain type fields.

2015-02-21 3:51 GMT+08:00 Scott notifications@github.com:

The "fieldHtmlClass" function does not support select elements or their
options as well as checkboxes and radio buttons. It would be nice to add
classes to these elements.


Reply to this email directly or view it on GitHub
#137.

Ulion

@Shad0wLi0n
Copy link
Author

Thanks but I've actually edited the JS file to include support for adding classes to any element. Including fixing the select element. I'll post it online later.

-Scott

Sent from my iPad

On Feb 20, 2015, at 7:01 PM, ulion notifications@github.com wrote:

if you checkout my fork, you will found the select field type do support
fieldHtmlClass.
the checkboxes and radios types do not support it. but you can always give
any form definition an "id", then you can always use the id to css the
fields you want affect.
and htmlClass is also a possibility, or more generally
"[data-jsonform-type=typename]" in my fork to css certain type fields.

2015-02-21 3:51 GMT+08:00 Scott notifications@github.com:

The "fieldHtmlClass" function does not support select elements or their
options as well as checkboxes and radio buttons. It would be nice to add
classes to these elements.


Reply to this email directly or view it on GitHub
#137.

Ulion

Reply to this email directly or view it on GitHub.

@tchapi
Copy link
Member

tchapi commented Jun 28, 2018

It's now supported on master

@tchapi tchapi closed this as completed Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants