Enables the given item. The 'disabled' class is removed.
(static) enable(itemopt) → {caph.focus.focusController}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
item |
DOMElement | string |
<optional> |
A DOM element to be enabled. If the string value is passed, it represents the name of the focusable. If not passed anything else, enables the current focus item. |
Returns:
Example
angular.module('myApp', ['caph.focus']).controller('myController', ['$scope', 'focusController', function($scope, focusController) {
$scope.enable = function(name) {
focusController.enable(name);
}
}]);