This plugin will auto-initialize on any page that contains aselectwith thedata-role="slider"attribute. However, if needed you can directly call thesliderplugin on any selector, just like any jQuery plugin:
This what does this "calling" do?
The jqm manual assumes the user already knows But where to find out?
Some widgets take parameters and/or options, and you can control their operation by calling the widget and passing a parameter.
Given no parameter (as shown above), the widget is created on the element (initialized). This is done for you, automatically, as long as you include the widget's associated -data attribute in the HTML. For example, a listview is initialize automatically if you include a data-role="listview" attribute.
If, for some reason, you want to initialize the widget yourself, you could leave off the data-role="listview", and then initialize a listview on the element in your own code.
Leave a comment on watusiware's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic