setData

jQuery.caph.focus.Util. setData

Sets the focusable related data to the given item's data object. If focusable data is not provided, gets the already specified values from the given item's data object, and then uses it as a focusable data. The values which are not designated fill with default value.

(static) setData(item, optionopt) → {String}

Parameters:
Name Type Attributes Description
item DOMElement | jQuery

The target object.

option Object <optional>

The focusable data.

Returns:

Returns the given item's specified or generated name. If the given item is not focusable, returns null.

Type
String