1 / 14 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 | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | search data-iconpos left | right | top | bottom | n