-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels