May 21, 2021 jQuery Mobile
The list view in jQuery Mobile is a standard HTML list; O rderly (-lt;ol-gt;) and disorderly (-lt;ul-gt;).
List views are a powerful feature of jQuery Mobile. I t makes standard disordered or ordered lists more widely available. T he application method is to add the data-role"listview" property to the ul or ol tag. Add a link to each item, and users can click on it:
The fillets and edges of the list style, set using the data-inset-"true" property:
By default, a link to a list item automatically becomes a button (no data-role"button" is required). |
List items can also be converted into list split items, which are used to organize lists and group list items.
Specify the list split, add the data-role-list-divider property to the list items.
If you have an alphabetical list, (for example, a phone book) the data-autodividers-"true" property settings of the element can be configured to separate the automatically generated items:
Data-autodividers "true" can be configured as the separation of automatically generated items. By default, the separated text you create is the first capital letter of the list item text. |
jquery Mobile provides a very simple way to implement client search capabilities and filter the options for lists. Simply add the data-filter"true" property:
By default, the default character for the search input box is "Filter items..."
You can set the default character for the search input box by setting the binding program for the mobileinit event or by setting a string for the $.mobile.listview.prototype.options.filterPlaceholder option, or by setting the data-filter-placeholder property for the list:
Read-only list
How to create a list without a link (not a button and not clickable).