List

List views are versatile and powerful user interface compontents frequently found in iOS apps. A list view presents data in a scrollable list of multiple rows that may be divided into sections/groups.

List views have many purposes:

{% highlight html %}

List view

With icon, title and after
  • Bom
    12:12
  • Gender
    Male
With title and after
  • Bom
    12:12
  • Gender
    Male
With Arrow
{% endhighlight %}

Where:

Add .item-link class on .item-content will make it show a right arrow。

Contacts List

Show contacts

Contacts list is a particular case of Grouped Lists with two differences:

Contacts list will auto have a iOS-like index list on the right side - it's named index list. Try it on the demo on the right side ->

The index list is a JS component, it will auto init when page init. You should init it like this if your contacts list is load by ajax:

{% highlight js %} $(".contacts-block").indexList(); {% endhighlight %}
{% highlight html %}

Contacts List

  • A
  • Person0
  • Person1
  • Person2
  • Person3
  • Person4
  • Person5
  • Person6
  • Person7
  • B
  • Tom
  • TOm
  • Tom3
  • Tom4
  • Tom5
  • Tom6
  • C
  • David1
  • David2
  • David3
  • David4
  • David5
  • David6
  • David7
  • V
  • Lily1
{% endhighlight %}

Media List View

Media list view is extended case of list view indended to display more complex data like products, services, users, etc.

And of course it has a bit more complex layout:

{% highlight html %}

Media List

Title
Mail App
Simple list
  • Title
    sub title
Inset
{% endhighlight %}

Where:

Selectable List

List can be selected with checkbox or radio. You can put checkbox or radio in List, and the list item will have a selected style when user select. There is no JS at all, So you should read data from the hidden checkbox or radoi

{% highlight html %} {% endhighlight %}

Change the type of input to "checkbox" to make multiple select.