Ticket #3673 (closed feature: fixed)
Widget: Add methods to abstract focus and hover classes
| Reported by: | scott.gonzalez | Owned by: | scott.gonzalez |
|---|---|---|---|
| Priority: | major | Milestone: | 1.9.0 |
| Component: | ui.widget | Version: | 1.6rc2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Many (all?) plugins now need to add classes on hover to take advantage of the new CSS framework. To reduce code duplication, we should add a hoverClass method to ui.core.js.
$.fn.hoverClass = function(classNames) {
return this.hover(
function() {
$(this).addClass(classNames);
},
function() {
$(this).removeClass(classNames);
});
};
Change History
comment:1 Changed 5 years ago by scott.gonzalez
- Owner set to scott.gonzalez
- Status changed from new to accepted
- Milestone changed from TBD to 1.6
comment:4 Changed 2 years ago by scott.gonzalez
- Status changed from accepted to new
- Summary changed from Add hoverClass method to Widget: Add methods to abstract focus and hover classes
- Component changed from ui.core to ui.widget
- Milestone changed from 1.next to 1.9
Note: See
TracTickets for help on using
tickets.

