jQuery Mobile Listview dividerTheme Option
jQuery Mobile is an HTML5 based user interface system designed to make responsive websites and apps that are accessible on all smartphone, tablet, and desktop devices. jQuery Listview is a widget used to create beautiful lists. It is a simple and responsive listview used to view the unordered lists.
In this article, we are going to implement the dividerTheme option of Listview. The dividerTheme is applied on a list-divider. A list divider is used to categorize or group list items. We can apply different themes to list dividers using the dividerTheme option.
Syntax: The syntax for dividerTheme for listview is as follows. Pass any single letter from a-z in lowercase where each letter depicts a theme.
CDN Links: Use the following CDN links for jQuery Mobile.
<link rel=”stylesheet” href=”https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css” />
Example 1: In the following example, we have implemented the light theme for the dividerTheme bypassing the character ‘a’.
Example 2: In this example, we have used the dark theme by implementing the letter “b” to dividerTheme of the listview.