91
91
UI.CSS_ODD = getCN(LAZR, 'odd');
94
* This object implements the necessary code to prevent the tabindex attribute
95
* from being added to Widget instances. It is intended to augment existing
94
* This function forces a class to have a tabIndex attribute which
95
* takes the widget's boundingBox out of the tab order.
96
* It is intended to be called on subclasses of Widget.
98
98
* Use with caution. tabindex is intended as a usability feature, for
99
99
* keyboard accessibility, and visual feedback. If you disable it, be sure to
100
100
* have a really good reason, or a replacement ready.
104
UI.NoTabIndex = function() {};
107
* Override setting the widget's tabindex attribute. Since this widget
108
* is in-page, then having a tabindex just messes up the page tab-order.
110
* @method _uiSetTabIndex
111
* @param index {NUM} The tab index to (not) set.
114
UI.NoTabIndex.prototype._uiSetTabIndex = function(index) {};
102
* @method disableTabIndex
103
* @param {Class} widget_class Widget that should not be in the tab order.
105
UI.disableTabIndex = function(widget_class) {
106
if (widget_class === undefined) {
107
throw "disableTabIndex() must be called after ATTRS " +
108
"is set on the widget.";
110
widget_class.ATTRS.tabIndex = {
117
117
* Standard class for the UI 'waiting for new content' indicator.