disable

jQuery.caph.focus.controllerProvider.controller. disable

Disables the given item. The 'disabled' class is added. If the given item is equal to the current focus item, it will be blurred automatically.

(static) disable(itemopt) → {jQuery.caph.focus.controllerProvider.controller}

Parameters:
Name Type Attributes Description
item DOMElement | string <optional>

A DOM element to be disabled. If the string value is passed, it represents the name of the focusable. If not passed anything else, disables the current focus item.

Returns:
Type
jQuery.caph.focus.controllerProvider.controller
Example
function disable(name) {
 	$.caph.focus.controllerProvider.getInstance().disable(name);
 }