WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

jQuery Mobile List Content




jQuery Mobile List Icons

The default symbol for each rundown thing containing a connection is "carat-r" (right bolt). To change this to another symbol, utilize the information symbol characteristic on the rundown thing you need to modify:

Example

<ul information role="listview">
  <li><a href="#">Default is correct arrow</a></li>
  <li information icon="plus"><a href="#">data-icon="plus"</a></li>
  <li information icon="minus"><a href="#">data-icon="minus"</a></li>
  <li information icon="delete"><a href="#">data-icon="delete"</a></li>
  <li information icon="location"><a href="#">data-icon="location"</a></li>
  <li information icon="false"><a href="#">data-icon="false"</a></li>
</ul>
Try it yourself »

data-icon="false" will expel the icon.

For a total reference of all the jQuery Mobile catch symbols, it would be ideal if you go to our jQuery Mobile Symbols Reference.


16x16 Icons

To add a standard 16x16px symbol to your rundown, include a <img> component inside the connect with a class of "ui-li-icon":

Example

<ul information role="listview">
  <li><a href="#"><img src="us.png" alt="USA" class="ui-li-icon">USA</a></li>
</ul>
Try it yourself »

jQuery Mobile List Thumbnails

For pictures bigger than 16x16px, include a <img> component inside a rundown thing as the primary youngster component (with no class name).

jQuery Mobile will naturally scale the picture to 80x80px:

Example

<ul information role="listview">
  <li><a href="#"><img src="chrome.png"></a></li>
</ul>
Try it yourself »

Use standard HTML to fill the rundown with information:

Example

<ul information role="listview">
  <li>
    <a href="#">
    <img src="chrome.png">
    <h2>Google Chrome</h2>
    <p>Google Chrome is a free, open-source internet browser. Discharged in 2008.</p>
    </a>
  </li>
</ul>
Try it yourself »

Split Buttons

To make a split rundown with a vertical divider bar, place two connections inside the <li> element.

jQuery Mobile will consequently put the second connection on the correct side of the rundown with a correct bolt symbol. What's more, the content inside the connection (assuming any) will be demonstrated when a client drift over the icon:

Example

<ul information role="listview">
  <li>
    <a href="#"><img src="chrome.png"></a>
    <a href="#">Some Text</a>
  </li>
</ul>
Try it yourself »

Lets add a few pages and discoursed to make the connections more functional:

Example

<ul information role="listview">
  <li>
    <a href="#"><img src="chrome.png"></a>
    <a href="#download" information transition="pop" information icon="gear">Download Browser</a>
  </li>
</ul>

<div information role="page" id="download" information dialog="true">
Try it yourself »

Count Bubbles

Count bubbles are utilized to show numbers related with rundown things, for example, messages in a mailbox:

To include check bubbles, utilize an inline component, for example, <span>, with class "ui-li-count" and include a number:

Example

<ul information role="listview">
  <li><a href="#">Inbox<span class="ui-li-count">25</span></a></li>
  <li><a href="#">Sent<span class="ui-li-count">432</span></a></li>
  <li><a href="#">Trash<span class="ui-li-count">7</span></a></li>
</ul>
Try it yourself »

Note: To demonstrate the right number in a tally bubble, it must be refreshed automatically. This will be clarified in a later chapter.