Data Attributes
Data Attributes
Data attribute reference
The jQuery Mobile framework uses HTML5 data-
attributes to allow for markup-based initialization and configuration of widgets. These attributes are completely optional; calling plugins manually and passing options directly is also supported. To avoid naming conflicts with other plugins or frameworks that also use data-
attributes, set a custom namespace by modifying the ns
global option-
Button
Links with data-role="button"
. Input-based buttons, links in toolbars and button elements are auto-enhanced, no data-role
required.
data-corners | true | false |
---|---|
data-icon | home | delete | plus | arrow-u | arrow-d | carat-l | carat-t | carat-r | carat-b | check | gear
|