One of the things I've been thinking about with regard to the new CSS
framework in JQuery UI is whether there are plans to allow the css
classes to be configurable. Prior to soon-to-be 1.7 css classes used
to be configurable via the options hash passed into each widget. For
example,
$('#tabs').tabs({loadingClass: 'ui-tabs-spinning'});
It would appear that this capability is being phased (or completed
removed) from jQuery UI. If this is the case, I'm wondering if that
are plans in the future to allow for these CSS classes to be
configured on a widget-wide basis. For example, something like:
$.ui.css.state.active = 'ui-state-activated';
...and then widgets would use this configuration like so:
$.ui.css.state.active
I'm not suggesting this is the right solution, but that there is some
common way for widgets to "register" css classes and allow those to be
overridden by the developer.
Currently, I've written a plugin which hooks into $.className.add,
$.className.remove, etc. in order to unobtrusively force widgets to
use my custom CSS class names. I could, of course, modify the widget
implementations directly, but I want to avoid that as much as
possible.
Any thoughts on this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---