YouTip LogoYouTip

Jquerymobile List Content

* * * * * * ## jQuery Mobile List Icons By default, each list item includes a right-arrow icon ("carat-r"). To change this icon, use the `data-icon` attribute: ## Example [Try it yourself Β»](#) | ![Image 1: Note](#) | `data-icon="false"` removes the icon. | | --- | For a complete reference of jQuery Mobile button icons, visit our (#). * * * ## 16x16 Icons To add standard 16x16px icons to your list, include an `` element inside the list item and apply the `"ui-li-icon"` class: ## Example [Try it yourself Β»](#) * * * ## jQuery Mobile List Thumbnails For images larger than 16x16px, add an `` element inside the link. jQuery Mobile will automatically scale the image to 80x80px: ## Example
[Try it yourself Β»](#) Add list information using standard HTML: ## Example [Try it yourself Β»](#) * * * ## jQuery Mobile List Icons Use `class="ui-li-icon"` on the `` element in a list to add a 16x16px icon: ## Example
  • USAUSA
  • [Try it yourself Β»](#) * * * ## Split Buttons In jQuery Mobile lists, you may sometimes need to perform two distinct actions on a list item. In such cases, you must split the link button within the list item. To achieve this, add another `` element inside the `
  • ` element, which will render the split effect on the page. jQuery Mobile automatically styles the second link as a blue arrow icon; any text associated with that icon (if present) will appear when the user hovers over the icon: ## Example [Try it yourself Β»](#) Enhance link functionality by adding pages and dialogs: ## Example [Try it yourself Β»](#) * * * ## Badge Numbers Badge numbers display numeric values associated with list itemsβ€”such as unread email counts in an inbox. To add a badge number, use an inline element like ``, assign it the class `"ui-li-count"`, and insert the desired number: ## Example [Try it yourself Β»](#) **Note:** To correctly display a badge number, programmatic adjustments are required. This will be explained in later chapters. * * * ![Image 2: Example](#) ## More Examples (#) How to create popup lists. (#) How to set the default link icon for list items (default is right arrow). (#) How to create collapsible popup lists. (#) How to create lists that show/hide content. (#) How to build a calendar.
  • ← Jquerymobile Form BasicJquerymobile List Views β†’