For general usage, controlling and modifying elements we add some data values when a plugin binded.
Rocket Data
// data name uxRocket
uxRocket: {
"hasWrapper": true, // when plugin wraps the element, set to true otherwise false
"wrapper": "uxitd-clear-wrap",
"ready": "uxitd-clear-ready",
"selected": selector, // the jQuery selector
"options": options // plugin options
}
Plugin Data
Currently we are storing merged plugin options to element
var opts = $.extend({}, defaults, options, $(el).data(), {'selector': selector});
$el.data("uxClear", opts);
Note that: Plugin defaults can also modified both from options object while plugin binding or form data attributes on the element.
For general usage, controlling and modifying elements we add some data values when a plugin binded.
Rocket Data
Plugin Data
Currently we are storing merged plugin options to element
Note that: Plugin defaults can also modified both from
optionsobject while plugin binding or formdataattributes on the element.