#7237 closed bug (notabug)
UI Buttons lack custom css class option. Prevents styling per-button action.
Reported by: | harking | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.button | Version: | 1.8.11 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I couldn't find a way to add a css class to a button. Needed to provide custom styling to each button depending on action (Confirm: green, Cancel: red)
Change History (5)
comment:1 Changed 12 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 Changed 12 years ago by
My motivation was to be able to set a class on a button when creating a dialog via http://jqueryui.com/demos/dialog/#option-buttons
Do you know of another way I can set the class on those?
Would a better patch be to modify dialog() so that it can take a class option when creating the buttons?
comment:4 Changed 12 years ago by
Thanks!
Documentation was a vague that extra keys in the options for buttons would be added to the attributes of the button.
I'd love to update them but I couldn't find where to edit the docs or submit a patch for them. Links from http://jqueryui.com/development didn't direct me to contributing.
comment:5 Changed 12 years ago by
Documentation is locked down due to spam issues. Feel free to file a ticket to improve the documentation and include your proposed text. I, or someone else with access, can apply your change.
Thanks.
That's what .addClass() is for.