Advanced list view component with gesture, swipe and drag & drop support.

Use it along Mobiscroll forms, pages or in any web or mobile hybrid app. Suited for small to large screens.

Shipping with useful features for a refined UX, including:

  • Support for alternating row color
  • Use it with single, multi-line text or custom content
  • Render cards instead of full-width rows
  • Enhance content with images, avatars and icons
  • Built-in support for sorting and ordering
  • Multiple data-source support
  • Load on demand capabilities
  • Top positioned sticy header for segmenting the list
  • Simple to advanced grouping capabilities
  • CRUD with undo functionality
  • Full-blown gesture support
  • Hierarchical listviews with variable depth
  • Multiple theme support


Listview available for other frameworks.

Viewing demos & code for

light
dark

Listview - Basic

Change demo
Listview demo for creating a simple list of items. Add stripes for alternating background colors of list items.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {

    $('#simple').mobiscroll().listview({
        theme: '',
        lang: ''
    });
    
    $('#striped').mobiscroll().listview({
        theme: '',
        lang: '',
        striped: true
    });
});
<div mbsc-form>
    <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">Render a simple list of items with or without stripes.</div>
    </div>

    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Simple list</div>
        <ul id="simple" class="mbsc-cloak">
            <li>The Shawshank Redemption (1994)</li>
            <li>The Godfather (1972)</li>
            <li>The Godfather: Part II (1974)</li>
            <li>The Dark Knight (2008)</li>
            <li>12 Angry Men (1957)</li>
            <li>Schindler's List (1993)</li>
            <li>The Lord of the Rings: The Return of the King (2003)</li>
            <li>Pulp Fiction (1994)</li>
        </ul>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Striped list</div>
        <ul id="striped" class="mbsc-cloak">
            <li>The Good, the Bad and the Ugly (1966)</li>
            <li>Fight Club (1999)</li>
            <li>The Lord of the Rings: The Fellowship of the Ring (2001)</li>
            <li>Forrest Gump (1994)</li>
            <li>Star Wars: Episode V - The Empire Strikes Back (1980)</li>
            <li>Inception (2010)</li>
            <li>The Lord of the Rings: The Two Towers (2002)</li>
            <li>One Flew Over the Cuckoo's Nest (1975)</li>
        </ul>
    </div>
</div>

Listview - Content

Change demo
Listview demo for rendering different types of content. Use it for multi-line text, cards or any content with custom CSS.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {

    $('#multiline').mobiscroll().listview({
        theme: '',
        lang: '',
        enhance: true,
        swipe: false
    });

    $('#custom').mobiscroll().listview({
        theme: '',
        lang: '',
        enhance: true,
        swipe: false
    });

    $('#cards').mobiscroll().listview({
        theme: '',
        lang: '',
        swipe: false
    });

});
<div mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Multiline text</div>
        <ul id="multiline" class="mbsc-cloak">
            <li>
                <h3>Electric Smartscooter</h3>
                <p>Gogoro Smartscooter is world’s first connected two-wheeled electric vehicle. </p>
            </li>
            <li>
                <h3>The Solar Bike</h3>
                <p>An electric bike that incorporates solar panels and producing enough energy to use it 30 km a day.</p>
            </li>
            <li>
                <h3>Smallest Quadricopter</h3>
                <p>The Dutch gadget-manufacturer TRNDlabs reveals the smallest quadricopter of the world.</p>
            </li>
            <li>
                <h3>Glow Headphones</h3>
                <p>Discover the world’s first laser headphones that pulse to the music.</p>
            </li>
        </ul>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Custom CSS</div>
        <ul id="custom" class="mbsc-cloak md-custom-listview">
            <li>
                The Intouchables (2011)
                <span class="md-star-icon mbsc-ic mbsc-ic-star3">8.5</span>
            </li>
            <li>
                The Shawshank Redemption (1994)
                <span class="md-star-icon mbsc-ic mbsc-ic-star3">9.2</span>
            </li>
            <li>
                Fight Club (1999)
                <span class="md-star-icon mbsc-ic mbsc-ic-star3">8.8</span>
            </li>
            <li>
                Inception (2010)
                <span class="md-star-icon mbsc-ic mbsc-ic-star3">8.7</span>
            </li>
        </ul>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Cards</div>
        <ul id="cards" class="mbsc-cloak mbsc-card-list">
            <li mbsc-card>
                <div class="mbsc-card-content">
                    <img src="https://img.mobiscroll.com/demos/netflix.png" draggable="false" class="mbsc-avatar">
                    <h5 class="mbsc-card-title mbsc-bold">Netflix</h5>
                    <div class="mbsc-card-subtitle">Sherlock Series 3 is now avalable on Netflix</div>
                </div>
            </li>

            <li mbsc-card>
                <div class="mbsc-card-content">
                    <img src="https://img.mobiscroll.com/demos/angrybirds.png" draggable="false" class="mbsc-avatar">
                    <h5 class="mbsc-card-title mbsc-bold">Angry birds</h5>
                    <div class="mbsc-card-subtitle">Don't forget your daily Arena entry.</div>
                </div>
            </li>

            <li mbsc-card>
                <div class="mbsc-card-content">
                    <img src="https://img.mobiscroll.com/demos/candycam.png" draggable="false" class="mbsc-avatar">
                    <h5 class="mbsc-card-title mbsc-bold">Candycam</h5>
                    <div class="mbsc-card-subtitle">A new update is available!</div>
                </div>
            </li>
        </ul>
    </div>
</div>
.md-custom-listview .mbsc-lv-item {
    background: #c3e8fb;
    padding-top: 30px;
    padding-bottom: 30px;
}

.md-custom-listview .md-star-icon {
    float: right;
    font-weight: bold;
    color: #ff8400;
}

.md-custom-listview .md-star-icon:before {
    margin-right: 5px;
}

Listview - Image/Icon/Avatar

Change demo
Listview image demo for rendering content with regular images, icons and avatars. Customize it with custom CSS.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$('#image').mobiscroll().listview({
    theme: '',
    lang: '',
    enhance: true,
    swipe: false
});

$('#icon').mobiscroll().listview({
    theme: '',
    lang: '',
    enhance: true,
    swipe: false
});

$('#avatar').mobiscroll().listview({
    theme: '',
    lang: '',
    enhance: true,
    swipe: false
});
<div mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Image</div>
        <ul id="image" class="mbsc-cloak">
            <li>
                <img src="https://img.mobiscroll.com/demos/Requiem_for_a_Dream.png" />
                <h3>Requiem for a Dream</h3>
                <p>Directed by Darren Aronofsky</p>
            </li>
            <li>
                <img src="https://img.mobiscroll.com/demos/The_Dark_Knight.png" />
                <h3>The Dark Knight</h3>
                <p>Directed by Christopher Nolan</p>
            </li>
            <li>
                <img src="https://img.mobiscroll.com/demos/Despicable_Me.png" />
                <h3>Despicable Me</h3>
                <p>Directed by Pierre Coffin and Chris Renaud</p>
            </li>
            <li>
                <img src="https://img.mobiscroll.com/demos/Mr_Nobody.png" />
                <h3>Mr. Nobody</h3>
                <p>Directed by Jaco Van Dormael</p>
            </li>
        </ul>

    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Icon</div>
        <ul id="icon" class="mbsc-cloak">
            <li data-icon="line-user">Edit profile</li>
            <li data-icon="line-settings">Settings</li>
            <li data-icon="line-heart">Rate</li>
            <li data-icon="line-bubble">Tell a friend</li>
        </ul>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Avatar</div>
        <ul id="avatar" class="mbsc-cloak">
            <li><img src="https://img.mobiscroll.com/demos/m1.png">
                <h3>Barry Lyon</h3>
                <p>(202) 555-0193</p>
            </li>
            <li><img src="https://img.mobiscroll.com/demos/f1.png">
                <h3>Hortense Tinker</h3>
                <p>(202) 555-0127</p>
            </li>
            <li><img src="https://img.mobiscroll.com/demos/m2.png">
                <h3>Carl Hambledon</h3>
                <p>(202) 555-0147</p>
            </li>
            <li><img src="https://img.mobiscroll.com/demos/f2.png">
                <h3>Arlene Sharman</h3>
                <p>(202) 555-0190</p>
            </li>
        </ul>
    </div>
</div>

Listview - Sorting & ordering

Change demo
Listview reorder demo. Grab and sort from drag handle on the left or right side, or tap/click and hold to sort.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {

    $('#demo').mobiscroll().listview({
        theme: '',
        lang: '',
        swipe: false,
        sortable: {
            handle: 'right'
        },
        enhance: true
    });

    $('#left').mobiscroll().listview({
        theme: '',
        lang: '',
        swipe: false,
        sortable: {
            handle: 'left'
        },
        enhance: true
    });

    $('#no-handle').mobiscroll().listview({
        theme: '',
        lang: '',
        swipe: false,
        sortable: true,
        enhance: true
    });

});
<div mbsc-form>
    <div class="mbsc-note mbsc-note-primary mbsc-align-center">
        Reorder items from the drag handle or grab and hold to sort.
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Handle on the right</div>
        <ul id="demo" class="mbsc-cloak">
            <li><img src="https://img.mobiscroll.com/demos/m1.png" />
                <h3>Barry Lyon</h3>
                <p>(202) 555-0193</p>
            </li>
            <li><img src="https://img.mobiscroll.com/demos/f1.png" />
                <h3>Hortense Tinker</h3>
                <p>(202) 555-0127</p>
            </li>
            <li><img src="https://img.mobiscroll.com/demos/m2.png" />
                <h3>Carl Hambledon</h3>
                <p>(202) 555-0147</p>
            </li>
            <li><img src="https://img.mobiscroll.com/demos/f2.png" />
                <h3>Arlene Sharman</h3>
                <p>(202) 555-0190</p>
            </li>
        </ul>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Handle on the left</div>
        <ul id="left" class="mbsc-cloak">
            <li><img src="https://img.mobiscroll.com/demos/m1.png" />
                <h3 style="">Barry Lyon</h3>
                <p>(202) 555-0193</p>
            </li>
            <li><img src="https://img.mobiscroll.com/demos/f1.png" />
                <h3>Hortense Tinker</h3>
                <p>(202) 555-0127</p>
            </li>
            <li><img src="https://img.mobiscroll.com/demos/m2.png" />
                <h3>Carl Hambledon</h3>
                <p>(202) 555-0147</p>
            </li>
            <li><img src="https://img.mobiscroll.com/demos/f2.png" />
                <h3>Arlene Sharman</h3>
                <p>(202) 555-0190</p>
            </li>
        </ul>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Tap and hold to start reordering</div>
        <ul id="no-handle" class="mbsc-cloak">
            <li><img src="https://img.mobiscroll.com/demos/m1.png" />
                <h3>Barry Lyon</h3>
                <p>(202) 555-0193</p>
            </li>
            <li><img src="https://img.mobiscroll.com/demos/f1.png" />
                <h3>Hortense Tinker</h3>
                <p>(202) 555-0127</p>
            </li>
            <li><img src="https://img.mobiscroll.com/demos/m2.png" />
                <h3>Carl Hambledon</h3>
                <p>(202) 555-0147</p>
            </li>
            <li><img src="https://img.mobiscroll.com/demos/f2.png" />
                <h3>Arlene Sharman</h3>
                <p>(202) 555-0190</p>
            </li>
        </ul>
    </div>
</div>

Listview - Sticky header

Change demo
Listview demo with sticky header. List out names or contacts grouped alphabetically with the first letter on top.
$(function () {

    $('#demo').mobiscroll().listview({
        theme: '',
        lang: '',
        fixedHeader: true,
        swipe: false
    });

});
<ul id="demo" class="mbsc-cloak">
    <li data-role="list-divider">A</li>
    <li>Audie Pennington</li>
    <li>Audrea Delaughter</li>
    <li>Augustine Brink</li>
    <li>Aurelio Deveau</li>
    <li>Aurora Marston</li>
    <li data-role="list-divider">B</li>
    <li>Bobby Weisman</li>
    <li>Bobbye Clapp</li>
    <li>Bobette Boyland</li>
    <li>Boris Latta</li>
    <li>Boyce Haller</li>
    <!-- Showing partial data. Download full source. -->
</ul>

Listview - Grouping

Change demo
Listview demo with group headers. Use it to logically segment and group items without creating multiple lists.
$(function () {

    $('#demo').mobiscroll().listview({
        theme: '',
        lang: '',
        swipe: false,
        enhance: true
    });

});
<div class="md-groupsort">
    <ul id="demo" class="mbsc-cloak">
        <li data-role="list-divider">Non alcoholic drinks</li>
        <li><img src="https://img.mobiscroll.com/demos/dCappuccino.jpg" class="md-img" /> Cappuccino <span class="md-price">$3.00</span></li>
        <li><img src="https://img.mobiscroll.com/demos/dCoffee.jpg" class="md-img" /> Coffee <span class="md-price">$2.60</span></li>
        <li><img src="https://img.mobiscroll.com/demos/dCola.jpg" class="md-img" />Coca Cola <span class="md-price">$3.50</span></li>
        <li><img src="https://img.mobiscroll.com/demos/dMilk.jpg" class="md-img" />Milk <span class="md-price">$2.50</span></li>
        <li><img src="https://img.mobiscroll.com/demos/dPepsi.jpg" class="md-img" />Pepsi <span class="md-price">$3.50</span></li>
        <li><img src="https://img.mobiscroll.com/demos/dTea.jpg" class="md-img" />Tea <span class="md-price">$3.00</span></li>
        <li><img src="https://img.mobiscroll.com/demos/dWater.jpg" class="md-img" />Water <span class="md-price">$2.00</span></li>
        <li data-role="list-divider">Alcoholic drinks</li>
        <li><img src="https://img.mobiscroll.com/demos/dBeer.jpg" class="md-img" />Beer <span class="md-price">$3.00</span></li>
        <li><img src="https://img.mobiscroll.com/demos/dGin.jpg" class="md-img" />Gin <span class="md-price">$4.00</span></li>
        <li><img src="https://img.mobiscroll.com/demos/dMartini.jpg" class="md-img" />Martini <span class="md-price">$4.50</span></li>
        <li><img src="https://img.mobiscroll.com/demos/dRum.jpg" class="md-img" />Rum <span class="md-price">$5.00</span></li>
        <li><img src="https://img.mobiscroll.com/demos/dWine.jpg" class="md-img" />Wine <span class="md-price">$4.50</span></li>
        <li><img src="https://img.mobiscroll.com/demos/dWhiskey.jpg" class="md-img" />Whiskey <span class="md-price">$6.00</span></li>
    </ul>
</div>
.md-groupsort .mbsc-lv .mbsc-lv-item .md-img {
    border-radius: 40px;
}

.md-price {
    float: right;
}

Listview - Create, Read, Update, Delete

Change demo
Listview demo with CRUD operations & swipe actions. Slide right to update and left to delete items.
$(function () {

    var lv,
        formatDate = mobiscroll.util.datetime.formatDate;

    lv = $('#demo').mobiscroll().listview({
        theme: '',
        lang: '',
        stages: [{
            percent: -25,
            color: 'red',
            text: 'Delete',
            confirm: true,
            action: function (event, inst) {
                inst.remove(event.target);
                return false;
            }
        }, {
            percent: 25,
            color: 'green',
            text: 'Update',
            action: function (event, inst) {
                $(event.target).find('.md-timestamp').text(formatDate('DD d hh:ii:ss A', new Date()));
            }
        }]
    }).mobiscroll('getInst');

    $('.md-timestamp').each(function () {
        $(this).text(formatDate('DD d hh:ii:ss A', new Date()));
    });

    $('#add').on('click', function () {
        mobiscroll.prompt({
            title: 'New item',
            message: 'Enter a description and add it to the list of existing tasks.',
            placeholder: 'What to do next...',
            callback: function (value) {
                if (value !== null) {
                    lv.add(null, mobiscroll.$('<li>' + (value ? value : 'New item') + '<div class="md-timestamp mbsc-italic">' + formatDate('DD d hh:ii:ss A', new Date()) + '</div></li>'));
                    mobiscroll.toast({
                        message: 'New item added'
                    });
                }
            }
        });
    });

});
<div mbsc-form>
    <div class="mbsc-note mbsc-note-primary mbsc-align-center">
        Slide left to delete, right to update item timestamp. Add new items from prompt.
    </div>

    <ul id="demo" class="mbsc-cloak">
        <li data-id="1">Check Mobiscroll demos
            <div class="md-timestamp mbsc-italic"></div>
        </li>
        <li data-id="2">Feed the pets
            <div class="md-timestamp mbsc-italic"></div>
        </li>
        <li data-id="3">Send an invitation email to Emily
            <div class="md-timestamp mbsc-italic"></div>
        </li>
        <li data-id="4">Watch the new Arrow episode
            <div class="md-timestamp mbsc-italic"></div>
        </li>
        <li data-id="5">Wash the dishes
            <div class="md-timestamp mbsc-italic"></div>
        </li>
    </ul>
    <div class="mbsc-btn-group-block">
        <button id="add">Add new item</button>
    </div>
</div>

Listview - Remove/Undo

Change demo
Listview demo with swipe-away delete and built-in undo functionality. Use it for laying out notifications or any data.
$(function () {

    $('#demo').mobiscroll().listview({
        theme: '',
        lang: '',
        stages: [{
            percent: -30,
            action: remove,
            undo: true
        }, {
            percent: 30,
            action: remove,
            undo: true
        }, ]
    });

    function remove(ev, inst) {
        inst.remove(ev.target);

        return false;
    }
});
<div class="mbsc-note mbsc-note-primary mbsc-align-center">
    Swipe left or right to remove items.
</div>

<ul id="demo" class="md-mailbox mbsc-cloak">
    <li>
        <div class="md-mail-icon" style="background:#4c66a4;">F</div>
        <div class="md-mail-date">Nov 4</div>
        <div class="md-mail-from">Facebook</div>
        <div class="md-mail-subject">Your weekly page update</div>
    </li>
    <li>
        <div class="md-mail-icon" style="background:#287BBC;">L</div>
        <div class="md-mail-date">Nov 1</div>
        <div class="md-mail-from">LinkedIn</div>
        <div class="md-mail-subject">Michael has endorsed you!</div>
    </li>
    <li>
        <div class="md-mail-icon" style="background:#5185a8;">M</div>
        <div class="md-mail-date">Oct 31</div>
        <div class="md-mail-from">Mobiscroll</div>
        <div class="md-mail-subject">October update</div>
    </li>
    <li>
        <div class="md-mail-icon" style="background:#1a3665;">P</div>
        <div class="md-mail-date">Oct 31</div>
        <div class="md-mail-from">PayPal</div>
        <div class="md-mail-subject"> Stay fashionable in the cold with PayPal</div>
    </li>
    <li>
        <div class="md-mail-icon" style="background:#dd4b39;">G</div>
        <div class="md-mail-date">Oct 28</div>
        <div class="md-mail-from">Google+</div>
        <div class="md-mail-subject">John Doe added you back on Google+</div>
    </li>
    <li>
        <div class="md-mail-icon" style="background:#5185a8;">M</div>
        <div class="md-mail-date">Oct 27</div>
        <div class="md-mail-from">Mobiscroll</div>
        <div class="md-mail-subject">Password reset information</div>
    </li>
</ul>
.md-mailbox .mbsc-lv-item {
    line-height: 20px;
    padding: 10px 10px 10px 60px;
}

.md-mail-icon {
    width: 40px;
    line-height: 40px;
    position: absolute;
    top: 10px;
    left: 10px;
    color: #fff;
    text-align: center;
    text-shadow: none;
}

.md-mail-date {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
}

.md-mail-from {
    font-size: 14px;
}

.md-mail-subject {
    font-size: 12px;
}

.md-mail-empty {
    padding: 10px;
}

Listview - Swipe actions

Change demo
Listview demo with swipe revealing actions. Render an action list or action menu when sliding items left and right.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {

    $('#action-list').mobiscroll().listview({
        theme: '',
        lang: '',
        enhance: true,
        stages: [{
                percent: 25,
                icon: 'link',
                text: 'Get link',
                action: function (event, inst) {
                    mobiscroll.toast({
                        message: 'Link copied'
                    });
                }
            }, {
                percent: 50,
                icon: 'download',
                text: 'Download',
                action: function (event, inst) {
                    mobiscroll.toast({
                        message: 'Downloaded'
                    });
                }
            }, {
                percent: -25,
                icon: 'print',
                text: 'Print',
                action: function (event, inst) {
                    mobiscroll.toast({
                        message: 'Printing...'
                    });
                }
            },
            {
                percent: -50,
                icon: 'remove',
                text: 'Delete',
                confirm: true,
                action: function (event, inst) {
                    inst.remove(event.target);
                    return false;
                }
            }
        ]
    });

    $('#action-menu').mobiscroll().listview({
        theme: '',
        lang: '',
        enhance: true,
        actions: [{
            icon: 'link',
            action: function (event, inst) {
                mobiscroll.toast({
                    message: 'Linked'
                });
            }
        }, {
            icon: 'star3',
            action: function (event, inst) {
                mobiscroll.toast({
                    message: 'Starred'
                });
            }
        }, {
            icon: 'download',
            action: function (event, inst) {
                mobiscroll.toast({
                    message: 'Downloaded'
                });
            }
        }, {
            icon: 'print',
            action: function (event, inst) {
                mobiscroll.toast({
                    message: 'Printing...'
                });
            }
        }, {
            icon: 'remove',
            undo: true,
            action: function (event, inst) {
                inst.remove(event.target);
                return false;
            }
        }]
    });

});
<div mbsc-form>
    <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">Reveal underlying actions when swiping items left and right.</div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Action list</div>
        <ul id="action-list" class="mbsc-cloak">
            <li data-icon="image2">Image 1</li>
            <li data-icon="image2">Image 2</li>
            <li data-icon="image2">Image 3</li>
            <li data-icon="image2">Image 4</li>
            <li data-icon="image2">Image 5</li>
        </ul>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Action menu</div>
        <ul id="action-menu" class="mbsc-cloak">
            <li data-icon="image2">My Image 1</li>
            <li data-icon="image2">My Image 2</li>
            <li data-icon="image2">My Image 3</li>
            <li data-icon="image2">My Image 4</li>
            <li data-icon="image2">My Image 5</li>
        </ul>
    </div>
</div>

Listview - Hierarchy

Change demo
Listview with multi-level hierarchy and drill-down interface. Featuring images, icons and text.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {

    $('#demo').mobiscroll().listview({
        theme: '',
        lang: '',
        swipe: false,
        enhance: true
    });

    $('#inside-card').mobiscroll().listview({
        theme: '',
        lang: '',
        swipe: false,
        enhance: true
    });


});
<div mbsc-form>
    <div class="mbsc-note mbsc-note-primary mbsc-align-center">
        Build hierarchical listviews. Use it for navigation, inline or in modals.
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Hierarchical listview</div>
        <ul id="demo" class="mbsc-cloak">
            <li>
                <span class="md-continent micons icon-north-america"> </span> North America
                <ul>
                    <li>
                        <img src="https://img.mobiscroll.com/demos/flags/us.png" /> USA
                        <ul>
                            <li>Washington</li>
                            <li>Florida</li>
                            <li>Los Angeles</li>
                            <li>New York</li>
                            <li>Detroit</li>
                            <li>Chicago</li>
                        </ul>
                    </li>
                    <li>
                        <img src="https://img.mobiscroll.com/demos/flags/ca.png" /> Canada
                        <ul>
                            <li>Vancouver</li>
                            <li>Winnipeg</li>
                            <li>Calgary</li>
                            <li>Montreal</li>
                            <li>Quebec</li>
                        </ul>
                    </li>
                </ul>
            </li>
            <li>
                <span class="md-continent micons icon-south-america"></span> South America
                <ul>
                    <li>
                        <img src="https://img.mobiscroll.com/demos/flags/ar.png" /> Argentina
                        <ul>
                            <li>Buenos Aires</li>
                            <li>Córdoba</li>
                            <li>Rosario</li>
                            <li>Mendoza</li>
                        </ul>
                    </li>
                    <li>
                        <img src="https://img.mobiscroll.com/demos/flags/br.png" /> Brazil
                        <ul>
                            <li>Rio de Janeiro</li>
                            <li>Sao Paolo</li>
                            <li>Brasília</li>
                            <li>Salvador</li>
                            <li>Fortaleza</li>
                        </ul>
                    </li>
                    <li>
                        <img src="https://img.mobiscroll.com/demos/flags/cl.png" /> Chile
                        <ul>
                            <li>Santiago</li>
                            <li>Concepción</li>
                            <li>Valparaíso</li>
                        </ul>
                    </li>
                </ul>
            </li>
            <!-- Showing partial data. Download full source. -->
        </ul>
    </div>
    <div class="mbsc-padding">The listview can also be rendered inside a card</div>
    <div mbsc-card>
        <ul id="inside-card" class="mbsc-cloak">
            <li>
                <span class="md-continent micons icon-north-america"> </span> North America
                <ul>
                    <li>
                        <img src="https://img.mobiscroll.com/demos/flags/us.png" /> USA
                        <ul>
                            <li>Washington</li>
                            <li>Florida</li>
                            <li>Los Angeles</li>
                            <li>New York</li>
                            <li>Detroit</li>
                            <li>Chicago</li>
                        </ul>
                    </li>
                    <li>
                        <img src="https://img.mobiscroll.com/demos/flags/ca.png" /> Canada
                        <ul>
                            <li>Vancouver</li>
                            <li>Winnipeg</li>
                            <li>Calgary</li>
                            <li>Montreal</li>
                            <li>Quebec</li>
                        </ul>
                    </li>
                </ul>
            </li>
            <li>
                <span class="md-continent micons icon-south-america"></span> South America
                <ul>
                    <li>
                        <img src="https://img.mobiscroll.com/demos/flags/ar.png" /> Argentina
                        <ul>
                            <li>Buenos Aires</li>
                            <li>Córdoba</li>
                            <li>Rosario</li>
                            <li>Mendoza</li>
                        </ul>
                    </li>
                    <li>
                        <img src="https://img.mobiscroll.com/demos/flags/br.png" /> Brazil
                        <ul>
                            <li>Rio de Janeiro</li>
                            <li>Sao Paolo</li>
                            <li>Brasília</li>
                            <li>Salvador</li>
                            <li>Fortaleza</li>
                        </ul>
                    </li>
                    <li>
                        <img src="https://img.mobiscroll.com/demos/flags/cl.png" /> Chile
                        <ul>
                            <li>Santiago</li>
                            <li>Concepción</li>
                            <li>Valparaíso</li>
                        </ul>
                    </li>
                </ul>
            </li>
            <!-- Showing partial data. Download full source. -->
        </ul>
    </div>
</div>
.md-country .mbsc-lv-img {
    margin-top: -.6em;
    width: 2em;
}

.md-continent {
    font-size: 36px;
    position: absolute;
    height: 1em;
    width: 1em;
    top: 50%;
    margin-top: -.5em;
    left: .42em;
    text-align: center;
}

Listview - Checklist

Change demo
Drag & Drop checklist/tasklist with swipe actions to add/remove items from todo listview. Sorting is supported.
$(function () {

    $('#demo').mobiscroll().listview({
        theme: '',
        lang: '',
        sortable: {
            handle: 'left'
        },
        stages: {
            left: [{
                key: 'stage1',
                icon: 'plus',
                color: '#31c6e7',
                text: 'Add',
                action: function (event, inst) {
                    inst.add(null, '<input type="checkbox" data-role="none" /> New Todo', event.index + 1);
                }
            }],
            right: [{
                key: 'stage2',
                color: '#009688',
                text: 'Remove',
                icon: 'remove',
                action: function (event, inst) {
                    inst.remove(event.target);
                    return false;
                }
            }]
        }

    });

});
<div mbsc-form>
    <div class="mbsc-note mbsc-note-primary mbsc-align-center">
        Check items off, swipe left/right to remove & add, reorder from the handle.
    </div>
    <div class="mbsc-form-group">
        <ul id="demo" class="mbsc-cloak" mbsc-enhance>
            <li><input type="checkbox" data-role="none" checked />Do the laundry</li>
            <li><input type="checkbox" data-role="none" />Check out new Mobiscroll features</li>
            <li><input type="checkbox" data-role="none" checked />Don't forget mom's birthday!</li>
            <li><input type="checkbox" data-role="none" />Update my app with the latest Mobiscroll</li>
            <li><input type="checkbox" data-role="none" />Buy new shoes</li>
            <li><input type="checkbox" data-role="none" />Need ketchup for pizza</li>
        </ul>
    </div>
</div>

Listview - Filtering

Change demo
Listview demo with dynamic data and live filtering. Add and remove items on the fly or reload the full list.
// Use the settings object to change the theme
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {
    var formatDate = mobiscroll.util.datetime.formatDate;

    var demoApp = {

        data: [],

        nothingScheduled: $('.md-no-schedule'),

        filters: {
            range: 'today',
            calls: true,
            meetings: true
        },

        loadData: function () {
            var i,
                now = new Date(),
                data = [{
                    id: 1,
                    name: "Owen Adams",
                    company: "Sunholdings Corp.",
                    icon: "phone",
                    type: "call"
                }, {
                    id: 2,
                    name: "Kian Phillips",
                    company: "sol-flex Corp.",
                    icon: "location",
                    type: "meeting"
                }, {
                    id: 3,
                    name: "Robert Bradley",
                    company: "Silvermedia",
                    icon: "location",
                    type: "meeting"
                }, {
                    id: 4,
                    name: "Lydia Young",
                    company: "Zimplex",
                    icon: "phone",
                    type: "call"
                }, {
                    id: 5,
                    name: "Hollie Hudson",
                    company: "Stanelectrics",
                    icon: "location",
                    type: "meeting"
                }, {
                    id: 6,
                    name: "Lynn Elliott",
                    company: "Techhex",
                    icon: "location",
                    type: "meeting"
                }, {
                    id: 7,
                    name: "Konner Murray",
                    company: "HACME Corp.",
                    icon: "phone",
                    type: "call"
                }, {
                    id: 8,
                    name: "Morgan Downs",
                    company: "Itex Corp.",
                    icon: "location",
                    type: "meeting"
                }, {
                    id: 9,
                    name: "Warren Boone",
                    company: "Sumline",
                    icon: "location",
                    type: "meeting"
                }, {
                    id: 10,
                    name: "Charlie Jenkins",
                    company: "Quaddoex",
                    icon: "phone",
                    type: "call"
                }, {
                    id: 11,
                    name: "Jillian Hobbs",
                    company: "Indizap",
                    icon: "location",
                    type: "meeting",
                    formatedTime: ''
                }, {
                    id: 12,
                    name: "Donald Mccormick",
                    company: "Zootrax",
                    icon: "phone",
                    type: "call"
                }, {
                    id: 13,
                    name: "Luke Harper",
                    company: "Unihouse",
                    icon: "phone",
                    type: "call"
                }, {
                    id: 14,
                    name: "Leah West",
                    company: "Ap-care",
                    icon: "phone",
                    type: "call"
                }, {
                    id: 15,
                    name: "Billie Rivas",
                    company: "Technoit Corp.",
                    icon: "location",
                    type: "meeting"
                }, {
                    id: 16,
                    name: "Janae Diaz",
                    company: "Plex-ron Corp.",
                    icon: "location",
                    type: "meeting"
                }, {
                    id: 17,
                    name: "Raquel Bentley",
                    company: "Silicon-lax",
                    icon: "phone",
                    type: "call"
                }, {
                    id: 18,
                    name: "Harley Burke",
                    company: "Lamzone",
                    icon: "location",
                    type: "meeting"
                }];

            // Genarate random dates
            for (i = 0; i < data.length; ++i) {
                data[i].date = new Date(
                    now.getFullYear(),
                    now.getMonth(),
                    now.getDate() + (i > 5 ? (i - 5) : 0),
                    now.getHours() + i * 2,
                    Math.round((now.getMinutes() + i * 5) / 5) * 5);
            }

            this.data = data;
        },

        filter: function () {
            var i,
                item,
                start,
                end,
                range,
                now = new Date(),
                count = 0;

            switch (this.filters.range) {
                case 'today':
                    start = new Date(now.setHours(0, 0, 0, 0));
                    end = new Date(now.setHours(23, 59, 59, 999));
                    break;
                case 'week':
                    start = new Date(now.setHours(0, 0, 0, 0));
                    end = new Date(
                        now.getFullYear(),
                        now.getMonth(),
                        now.getDate() + (7 - now.getDay()), 23, 59, 59, 999
                    );
                    break;
                default:
                    range = this.range.getVal();
                    start = range[0];
                    end = range[1];
            }

            for (i = 0; i < this.data.length; i++) {
                item = this.data[i];
                if ((
                        (item.type == 'call' && this.filters.calls) ||
                        (item.type == 'meeting' && this.filters.meetings)
                    ) && (item.date >= start) && (item.date <= end)) {
                    if (!item._added) {
                        // Add to listview
                        this.listview.add(item.id, mobiscroll.$(
                            '<li data-id="' + item.id + '" data-icon="' + item.icon + '">' +
                            '<h4>' + item.name + '</h4>' +
                            '<h4>' + item.company + '</h4>' +
                            '<span class="md-time" style="position:absolute;right:1.25em;top:50%;margin-top:-9px;">' + formatDate('D d hh:ii', item.date) +
                            '</span>' +
                            '</li>'));
                        item._added = true;
                    }
                    count++;
                } else if (item._added) {
                    // Remove from listview
                    this.listview.remove(item.id);
                    item._added = false;
                }
            }

            if (count === 0) {
                this.nothingScheduled.show();
            } else {
                this.nothingScheduled.hide();
            }
        },

        init: function () {
            var now = new Date(),
                that = this;

            // Load data
            this.loadData();

            // Init range
            this.range = $('.md-schedule-range').mobiscroll().range().mobiscroll('getInst');

            // Init listview
            this.listview = $('.md-schedule-list').mobiscroll().listview({
                enhance: true,
                swipe: false,
                striped: true,
                onInit: function (ev, inst) {
                    setTimeout(function () {
                        that.filter();
                    });
                }
            }).mobiscroll('getInst');

            // Attach change listener to all filters
            $('.md-schedule-filter').change(function (ev) {
                var input = ev.target;
                if (input.type == 'checkbox') {
                    that.filters[input.name] = input.checked;
                } else if (input.type == 'radio') {
                    that.filters[input.name] = input.value;
                } else if (input.name == 'custom') {
                    that.filters.range = 'custom';
                }
                that.filter();
            });

            this.nothingScheduled.hide();

            // Show rangepicker when selecting custom range
            $('.md-schedule-custom').click(function () {
                that.range.show();
            });
        }
    };

    demoApp.init();
})
<div class="md-schedule" mbsc-form>
    <div class="mbsc-note mbsc-note-primary mbsc-align-center">
        Dynamically filter listview content. Add/remove items or call a full reload.
    </div>
    <div class="mbsc-form-group">
        <label>
            Today
            <input type="radio" data-role="segmented" class="md-schedule-filter" value="today" name="range" checked>
        </label>
        <label>
            this Week
            <input type="radio" data-role="segmented" class="md-schedule-filter" value="week" name="range">
        </label>
        <label>
            Custom
            <input type="radio" data-role="segmented" class="md-schedule-filter md-schedule-custom" value="custom" name="range">
        </label>

        <input class="md-schedule-range md-schedule-filter" name="custom" type="hidden">

        <label>
            Show Calls
            <input class="md-schedule-filter" type="checkbox" data-role="switch" name="calls" checked>
        </label>
        <label>
            Show Meetings
            <input class="md-schedule-filter" type="checkbox" data-role="switch" name="meetings" checked>
        </label>
    </div>

    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">My Schedule</div>
        <div class="mbsc-empty md-no-schedule mbsc-cloak">
            <h3>Nothing scheduled</h3>
        </div>
        <ul class="md-schedule-list"></ul>
    </div>
</div>

Listview - Data sources

Change demo
Listview demo with different ways of getting and passing data. Supporting hardcoded lists, dynamic and remote data.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {
    var i, li,
        ul = $('#gen'),
        movies = [
            'Django Unchained (2012)',
            'WALL·E (2008)',
            'Princess Mononoke (1997)',
            'American Beauty (1999)',
            'The Dark Knight Rises (2012)'
        ];

    for (i = 0; i < movies.length; i++) {
        ul.append('<li>' + movies[i] + '</li>');
    }

    $('#demo').mobiscroll().listview();

    ul.mobiscroll().listview();

    $('#remote').mobiscroll().listview({
        onInit: function (event, inst) {
            var item;
            mobiscroll.util.getJson('https://trial.mobiscroll.com/getmovies/?nr=5', function (data) {
                for (i = 0; i < data.length; ++i) {
                    item = data[i];
                    inst.add(item.id, item.title);
                }
            }, 'jsonp');
        }
    });

});
<div mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Hardcoded items</div>
        <ul id="demo" class="mbsc-cloak">
            <li>Casablanca (1942)</li>
            <li>The Intouchables (2011)</li>
            <li>Modern Times (1936)</li>
            <li>The Pianist (2002)</li>
            <li>The Departed (2006)</li>
        </ul>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Generated markup</div>
        <ul id="gen" class="mbsc-cloak"></ul>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Remote data</div>
        <ul id="remote" class="mbsc-cloak"></ul>
    </div>
</div>

Listview - Load on demand

Change demo
Listview load on demand demo. Load data from a REST service and populate the list as users scroll content.
// Use the settings object to change the theme
mobiscroll.settings = {
    theme: ''
};


$(function () {

    var list,
        $wnd = $(window),
        $demo = $('#demo'),
        $loadingCont = $('#demo-loading'),
        isLoading = false,
        feedNum = 5;

    function jsonp(url, callback) {
        var callbackName = 'jsonp_callback_' + Math.round(100000 * Math.random());
        window[callbackName] = function (data) {
            delete window[callbackName];
            document.body.removeChild(script);
            callback(data);
        };

        var script = document.createElement('script');
        script.src = url + (url.indexOf('?') >= 0 ? '&' : '?') + 'callback=' + callbackName;
        document.body.appendChild(script);
    }

    function getFeed() {
        var i, entry, img, content, text, li;
        $loadingCont.addClass('md-btn-loading');

        jsonp("https://api.rss2json.com/v1/api.json?rss_url=http%3A%2F%2Ffeeds.arstechnica.com%2Farstechnica%2Ftechnology-lab%2F&api_key=ytdlqir4cx7dpdb9asyawz4lteioxq5uwl5ctd9n&count=" + feedNum, function (result) {
            if (result.status == 'ok') {
                for (i = feedNum - 5; i < result.items.length; i++) {
                    entry = result.items[i];
                    img = entry.thumbnail ? entry.content.match(/src="[^ ]*/)[0] : '';
                    content = /\<p\>(.*)(\.\s)/.exec(entry.content);
                    text = content ? content[1] : '';
                    li = '<div>';
                    li += '<h4>' + entry.title + '</h4>';
                    li += '<a href="' + entry.link + '" target="_blank"><img ' + img + ' /></a>';
                    li += '<p class="md-text">' + text + ' ... <a rel="nofollow" href="' + entry.link + '" target="_blank"> Read more →</a></p>';
                    li += '<div class="md-text md-author"> by <a rel="nofollow" href="' + entry.link + '" target="_blank">' + entry.author + '</a></div>';
                    li += '</div>';
                    list.add(null, li);
                }

                isLoading = false;
                $loadingCont.removeClass('md-btn-loading');
            }
        });
    }

    function shouldLoad() {
        return $loadingCont.offset().top + $loadingCont.outerHeight() - 1 < $wnd.scrollTop() + $wnd.outerHeight();
    }

    list = $demo.mobiscroll().listview({
        striped: true,
        animation: false,
        swipe: false,
    }).mobiscroll('getInst');

    $wnd.on('scroll touchmove', function () {
        var timer;
        clearTimeout(timer);
        timer = setTimeout(function () {
            if (!isLoading && shouldLoad()) {
                isLoading = true;
                feedNum += 5;
                getFeed();
            }
        }, 250);
    });

    getFeed();

});
<ul id="demo" class="md-news mbsc-cloak" mbsc-enhance>
    <li data-role="list-divider">Arstechnica News</li>
</ul>

<div id="demo-loading" class="mbsc-padding md-load-btn" mbsc-form>
    <button class="mbsc-btn mbsc-btn-flat mbsc-btn-block" data-icon="loop2"></button>
</div>
@keyframes md-rotating {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes md-rotating {
    from {
        -webkit-transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
    }
}

.md-news .mbsc-lv-item img {
    width: 100%;
}

.md-news .mbsc-lv-item h4 {
    margin-top: 0;
    font-weight: 100;
}

.md-news .mbsc-lv-item .md-author {
    margin-top: 0;
    text-align: right;
    font-size: 14px;
    font-style: italic;
}

.md-load-btn {
    display: none;
    min-height: 0 !important;
}

.md-load-btn .mbsc-ic-loop2 {
    font-size: 22px;
    display: none;
}

.md-load-btn .mbsc-ic-loop2:before {
    display: inline-block;
    -webkit-animation: md-rotating .6s linear infinite;
    animation: md-rotating .6s linear infinite;
}

.md-btn-loading {
    display: block;
}

.md-load-btn.md-btn-loading .mbsc-ic-loop2 {
    display: inline-block;
}

Listview - Load more

Change demo
Listview demo with load more button for loading additional items from a REST service. Get and display records from JSON.
// Use the settings object to change the theme
mobiscroll.settings = {
    theme: ''
};

$(function () {
    var list,
        $btnMore = $('#more'),
        $btnIcon = $('.md-btn-icon'),
        $btnText = $('.md-btn-text'),
        length = 10;

    function getMovies() {
        $btnIcon.show();
        $btnText.hide();

        mobiscroll.util.getJson('https://trial.mobiscroll.com/loadmore/?length=' + length, function (data) {
            var i, item;

            for (i = 0; i < data.length; ++i) {
                item = data[i];
                list.add(item.id, item.title);
            }

            $btnText.show();
            $btnIcon.hide();

            if (length >= 100) {
                $btnMore.hide();
            }

        }, 'jsonp');
    }

    list = $('#demo').mobiscroll().listview({
        theme: '',
        lang: '',
        animation: false,
        striped: true,
        swipe: false,
    }).mobiscroll('getInst');

    $btnMore.click(function (ev) {
        length += 10;
        getMovies();
    });

    getMovies();

});
<ul id="demo" class="mbsc-cloak" mbsc-enhance>
    <li data-role="list-divider">Top Rated Movies</li>
</ul>
<div class="mbsc-padding" mbsc-form>
    <button id="more" class="mbsc-btn-block">
        <span class="md-btn-icon mbsc-ic mbsc-ic-loop2"></span>
        <span class="md-btn-text">Load more</span>
    </button>
</div>

Listview - Event handlers

Change demo
Listview demo with event hooks for deep integration and custom functionality. With source code.
$(function () {

    var ids = 6;

    $('#demo').mobiscroll().listview({
        theme: '',
        lang: '',
        sortable: { handle: 'left' },
        iconSlide: true,
        striped: true,
        stages: [{
            percent: 25,
            color: 'crimson',
            icon: 'checkmark',
            text: 'Complete',
            action: function (event, inst) {
                $('.md-wo-status', event.target).text('Completed');
            }
        }, {
            percent: -50,
            color: 'red',
            icon: 'remove',
            text: 'Delete',
            confirm: true,
            action: function (event, inst) {
                inst.remove(event.target);
                return false;
            }
        }, {
            percent: 50,
            color: 'green',
            icon: 'plus',
            text: 'Spawn',
            undo: true,
            action: function (event, inst) {
                inst.add(++ids, 'Work order #000' + ids + ' created from WO #000' + $(event.target).attr('data-id') + '<div class="md-wo-status">Assigned</div>', event.index + 1);
            }
        }, {
            percent: -25,
            color: 'olive',
            icon: 'clock',
            text: 'Pending',
            action: function (event, inst) {
                $('.md-wo-status', event.target).text('Pending');
            }
        }],
        onItemAdd: function () {
            // Your custom event handler goes here
        },
        onItemRemove: function () {
            // Your custom event handler goes here
        },
        onInit: function (event, inst) {
            // Your custom event handler goes here
        },
        onItemTap: function (event, inst) {
            // Your custom event handler goes here
        },
        onNavEnd: function (event, inst) {
            // Your custom event handler goes here
        },
        onNavStart: function (event, inst) {
            // Your custom event handler goes here
        },
        onSlideEnd: function (event, inst) {
            // Your custom event handler goes here
        },
        onSlideStart: function (event, inst) {
            // Your custom event handler goes here
        },
        onSort: function (event, inst) {
            // Your custom event handler goes here
        },
        onSortChange: function (event, inst) {
            // Your custom event handler goes here
        },
        onSortEnd: function (event, inst) {
            // Your custom event handler goes here
        },
        onSortStart: function (event, inst) {
            // Your custom event handler goes here
        },
        onSortUpdate: function (event, inst) {
            // Your custom event handler goes here
        },
        onStageChange: function (event, inst) {
            // Your custom event handler goes here
        }
    });


});
<ul id="demo" class="md-wo-list mbsc-cloak">
    <li data-id="1">Work order #0001
        <div class="md-wo-status">Assigned</div>
    </li>
    <li data-id="2">Work order #0002
        <div class="md-wo-status">Assigned</div>
    </li>
    <li data-id="3">Work order #0003
        <div class="md-wo-status">Assigned</div>
    </li>
    <li data-id="4">Work order #0004
        <div class="md-wo-status">Assigned</div>
    </li>
    <li data-id="5">Work order #0005
        <div class="md-wo-status">Assigned</div>
    </li>
    <li data-id="6">Work order #0006
        <div class="md-wo-status">Assigned</div>
    </li>
</ul>
Clear event log
EVENTS FIRED: 

Listview - Quick Navigation

Change demo
Listview demo with quick access to list segments. Alphabetically group items and provide a tab list for selection.
$(function () {

    var timer,
        firstletter,
        currSelected = "A",
        start = new Date(),
        isScrolled = false,
        $wndw = $(window),
        $popup = $('.md-popup'),
        isFavorite = false,
        preventScroll = false,
        $list = $('#demo'),
        $listDeviders = $('#demo li[data-role=list-divider]'),
        $optionList = $('.md-alfabet');

    $list.mobiscroll().listview({
        theme: '',
        lang: '',
        swipe: false,
        enhance: true,
        onItemTap: function (event, inst) {
            var target = $(event.domEvent.target);

            if (target.hasClass('mbsc-ic')) {
                $(event.target).toggleClass('star3');
                target
                    .toggleClass('mbsc-ic-star3')
                    .toggleClass('mbsc-ic-star');
                mobiscroll.toast({
                    message: 'Favorites updated'
                });
            }
        }
    });

    $optionList.mobiscroll().optionlist({
        theme: '',
        type: 'tabs',
        display: 'top',
        select: 'single',
        onItemTap: function (event, inst) {
            var item = $(event.target),
                text = item.text();

            preventScroll = true;
            isFavorite = item.hasClass('md-item-star');

            if (!isFavorite) {
                $('.mbsc-lv-item:not(.star3)', $list).show();
                $listDeviders.show();
                $('.md-no-bookmark').hide();
            } else {
                $('.mbsc-lv-item:not(.star3)', $list).hide();
                $listDeviders.hide();
                if (!$('.star3').length) {
                    $('.md-no-bookmark').show();
                }
            }

            if (!isScrolled && !isFavorite) {
                $wndw.scrollTop($('.header' + text).next().position().top - $(this).height());
                $popup.addClass('md-show-popup');
                $popup.text(text);
                clearTimeout(timer);
                timer = setTimeout(function () {
                    $popup.removeClass('md-show-popup');
                }, 1500);
            }
        }
    });

    $wndw.on('scroll trouchmove', function (ev) {
        if (new Date() - start > 150 && !isFavorite) {
            var currHeader,
                wTop = $(this).scrollTop();

            $listDeviders.each(function (i, v) {
                if (wTop > $(v).position().top) {
                    currHeader = v;
                    return;
                }
            });

            firstletter = currHeader.textContent;
            isScrolled = true;

            if (currSelected != firstletter) {

                $optionList.mobiscroll('navigate', $('.md-item-' + firstletter), true);
            }

            currSelected = firstletter;
            start = new Date();
            isScrolled = false;
        }
    });

});
<div class="md-navigate">
    <div class="md-popup">
        c</div>
    <ul class="md-alfabet">
        <li class="md-item-star"><span class="mbsc-ic mbsc-ic-star3"></span</li>
        <li class="md-item-A" data-selected="true">A</li>
        <li class="md-item-B">B</li>
        <li class="md-item-C">C</li>
        <!-- Showing partial data. Download full source. -->
    </ul>
    <ul id="demo" class="md-list">
        <li class="md-no-bookmark">
            <div class="md-nob-title">Traveling to the same place frequently?</div>
            <div class="md-nob-txt">You can bookmark airports by tapping on the star to the left and they will show up here.</div>
            <div class="md-nob-separator"></div>
            <img class="md-nob-img" src="https://img.mobiscroll.com/demos/lv-bookmark.png" >
        </li>
        <li data-role="list-divider" class="headerA">A</li>
        <li data-icon="star">Abilene, TEXAS<span class="md-iata">(ABI)</span></li>
        <li data-icon="star">Agana / Tamuning, GUAM<span class="md-iata">(GUM)</span></li>
        <li data-icon="star">Aguadilla, PUERTO RICO<span class="md-iata">(BQN)</span></li>
        <li data-icon="star">Akron / Canton, OHIO<span class="md-iata">(CAK)</span></li>
        <li data-role="list-divider" class="headerB">B</li>
        <li data-icon="star">Baltimore / Glen Burnie, MARYLAND<span class="md-iata">(BWI)</span></li>
        <li data-icon="star">Bangor, MAINE<span class="md-iata">(BGR)</span></li>
        <li data-icon="star">Bar Harbor, MAINE<span class="md-iata">(BHB)</span></li>
        <li data-icon="star">Baton Rouge, LOUISIANA<span class="md-iata">(BTR)</span></li>
        <!-- Showing partial data. Download full source. -->
    </ul>
</div>
.demo-phone-screen-w #demo-ctx-200 {
    position: static;
}

.md-navigate .md-list .mbsc-lv-item {
    padding-right: 4em;
    backface-visibility: hidden;
    -webkit-transform: none;
    -moz-transform: none;
    transform: none;
}

.md-popup {
    position: fixed;
    width: 100px;
    height: 100px;
    margin: -50px 0 0 -50px;
    border-radius: 100px;
    background: rgba(78, 204, 196, .6);
    color: #fff;
    font-size: 56px;
    font-family: sans-serif;
    line-height: 100px;
    text-align: center;
    top: 50%;
    left: 50%;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    -webkit-transition: opacity 300ms;
    -moz-transition: opacity 300ms;
    transition: opacity 300ms;
}

.demo-phone .md-popup {
    position: absolute;
}

.md-show-popup {
    opacity: 1;
}

.md-alfabet .mbsc-ms-item {
    min-width: 2.5em;
}

.md-iata {
    position: absolute;
    top: 50%;
    right: 1em;
    margin-top: -9px;
}

.demo-theme-material .md-popup {
    background: rgba(0, 150, 136, .6);
}

.demo-theme-material-dark .md-popup {
    background: rgba(129, 204, 196, .6);
}

.demo-theme-ios .md-popup,
.demo-theme-ios-classic .md-popup {
    background: rgba(0, 122, 255, .6);
}

.demo-theme-android-holo .md-popup,
.demo-theme-android-holo-light .md-popup {
    background: rgba(49, 182, 231, .6);
}

.demo-theme-ios .md-popup {
    background: rgba(0, 122, 255, .6);
}

.demo-theme-wp .md-popup,
.demo-theme-wp-light .md-popup {
    background: rgba(26, 159, 224, .6);
}

.demo-theme-jqm .md-popup {
    background: rgba(51, 136, 204, .7);
}

.example-full .md-popup,
.demo-fullscreen .md-popup {
    position: fixed;
}

.md-item-star .mbsc-ic-star3 {
    font-size: 14px;
}

/* no bookmark section */

.md-navigate .md-list .mbsc-lv-item.md-no-bookmark {
    display: none;
    padding: 1.5em 2.5em;
    height: 571px;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

.demo-theme-wp-light .md-list .mbsc-lv-item.md-no-bookmark,
.demo-theme-wp .md-list .mbsc-lv-item.md-no-bookmark {
    height: 547px;
}

.demo-theme-ios .md-list .mbsc-lv-item.md-no-bookmark {
    height: 574px;
}

.demo-theme-android .md-list .mbsc-lv-item.md-no-bookmark {
    height: 577px;
}

.demo-theme-android-holo-light .md-list .mbsc-lv-item.md-no-bookmark,
.demo-theme-android-holo .md-list .mbsc-lv-item.md-no-bookmark {
    height: 575px;
}

.md-nob-separator {
    height: 1px;
    margin-bottom: 38px;
    width: 100%;
    background: #CACACA;
}

.md-nob-title {
    text-align: center;
    padding: 1em;
    font-size: 16px;
}

.md-nob-txt {
    text-align: center;
    padding: 1em 0 2em 0;
    color: #a0a0a0;
    font-size: 14px;
}

.md-navigate .mbsc-lv .md-no-bookmark.mbsc-lv-item .md-nob-img {
    position: static;
    display: block;
    max-width: 274px;
    width: 274px;
    max-height: initial;
    margin: 0 auto;
    border: 1px solid #ccc;
    margin-bottom: 14px;
    transform: none;
}

.md-no-bookmark {
    display: none;
    padding: 2em;
    background: #f7f7f7;
    font-size: 16px;
}

.md-navigate .md-no-bookmark.mbsc-lv-item-active:after {
    background: none!important;
}

.demo-theme-jqm .md-navigate .md-list .mbsc-lv-item.md-no-bookmark {
    padding-top: 70px;
    white-space: normal;
}

Looking for something you didn't see or have a sales question?
Ask us about it, we're here to help.

Component license


Purchase component licenses if you are looking for specific funcionality.

Total


All features will be included with the license.

Buy component license

Framework license


Get all 36 components, including with the Framework license.



Mobiscroll for JQuery $595


Use Javascript when building with plain and simple JS. Use jQuery when you have jQuery already included or if you are building with jQuery Mobile. Use AngularJS when building with Angular 1.x or Ionic 1. Use Angular when building with Angular 2/4/5/6/7 or Ionic 2/3/4. Use it when you are building your app or website with React.


Buy framework license
See other licensing options

Framework license


Get all 36 components, including with the Framework license.



Mobiscroll for JQuery $595


  • Use it when building with plain and simple JS
  • Compatible with vanilla JS app or frameworks like Vue
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with jQuery and jQuery Mobile
  • Enjoy the familiar API if you already use jQuery
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular JS and Ionic 1
  • For web and mobile apps based on Angular 1.x
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular 2/4/5/6/7 and Ionic 2/3/4
  • Visual Studio and VS Code integration
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it when building with React JS
  • Collection of UI components for web and mobile
  • Royalty-free commercial usage
  • Technical support is included with the license
Buy framework license
See other licensing options

Framework license


Select the development framework you are using. Get all 36 components with the license.

Mobiscroll for Javascript
Mobiscroll for jQuery
Mobiscroll for React
Mobiscroll for Angular
Mobiscroll for Angular JS
  • Use it when building with plain and simple JS
  • Compatible with vanilla JS app or frameworks like Vue
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with jQuery and jQuery Mobile
  • Enjoy the familiar API if you already use jQuery
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular JS and Ionic 1
  • For web and mobile apps based on Angular 1.x
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular 2/4/5/6/7 and Ionic 2/3/4
  • Visual Studio and VS Code integration
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it when building with React JS
  • Collection of UI components for web and mobile
  • Royalty-free commercial usage
  • Technical support is included with the license
Buy framework license
See other licensing options

Select the framework you are interested in

Javascript
jQuery
Angular
Angular JS
React

Use Javascript when building with plain and simple JS.

Use jQuery when you have jQuery already included or if you are building with jQuery Mobile.

Use AngularJS when building with Angular 1.x or Ionic 1.

Use Angular when building with Angular 2/4/5/6/7 or Ionic 2/3/4.

Use it when you are building your app or website with React.

Do you need additional support seats?

The framework license comes with one support seat. ( +$50/seat )

Add the source code?

Price
Buy now
Customize & try demos locally
Sign in or start your free trial

What framework are you using?

Javascript
jQuery
AngularJS
Angular
Ionic
React
Other
Select a framework
Email address

Customize & try this demo locally
Sign in or start your free trial

We have to set you up with a trial for this to run 👍

Email address

Customize & try demos locally
You can download and use Mobiscroll for Free

What framework are you using?

Javascript
jQuery
AngularJS
Angular
Ionic
React
Other
Select a framework
Install demo in your app
Follow this quick, two minute install guide
Close window

Step 1.Install the Mobiscroll CLI from npm

Copy command
$ npm install -g @mobiscroll/cli

The CLI makes configuring your apps super simple 👍

Step 2.Run the following command in the root folder of your Ionic project

Copy command
$ mobiscroll config ionic
$ mobiscroll config ionic --lite

You will be prompted to log in with your mobiscroll account. Set your password here

Create an Ionic 3 & Mobiscroll starter with the CLI:

$ mobiscroll start ionic myStarter

Run this command for Ionic 4 & Mobiscroll starter:

$ mobiscroll start ionic-angular myStarter

Step 3.Copy the code into your app. HTML goes into the markup, TS into Typescript.

Copy TS
Copy HTML
Copy CSS

Run ionic serve in the root folder of your app 🎉

Copy command
$ ionic serve
Thanks for downloading
Try and customize the app locally

Extract the zip file and run the project like any Ionic app. Make sure to have Ionic CLI installed and open the terminal in the app root folder.

Step 1. Run in root folder
$ npm install
Step 2. Start the app
$ ionic serve

Let us know if we can help and enjoy!

Change your password
Need to update your password? Enter and hit the button below

You are setting a password for the account

New Password Required Enter at least 6 characters
Change your password
Need to update your password? Enter and hit the button below

Your password has been changed!

Thanks for downloading
Customize demos locally

Everything is set up so that you can dig in right away and start exploring.

We have set up a trial so that you can try the demos locally.

Extract the zip file and open the demo in your favorite browser. To install Mobiscroll in your project follow instructions from this page.


Let us know if we can help and enjoy! 👍

Thanks for downloading
Customize demos locally

The demo is using an in-browser TypeScript transpiler app as its base. Extract the zip file and open the index.html on your local dev server.

You can also use live-server. For installation and usage, open a terminal window and follow these steps.

Step 1. Install live-server
$ npm install -g live-server
Step 2. Start server & run app
$ live-server

Let us know if we can help and enjoy! 👍

Thanks for downloading
Customize demos locally

Everything is set up so that you can dig in right away and start exploring.

We have set up a trial so that you can try the demos locally.

The easiest way to get started is to follow the installation steps and by grabbing the code directly from the demo page. Let us know if we can help and enjoy!

You'll find a fully functional Kitchen-sink Ionic app in the zip file.

Thanks for downloading
Customize demos locally

Everything is set up so that you can dig in right away and start exploring.

We have set up a trial so that you can try the demos locally.

The demos are using Babel's in-browser ES6 and JSX transformer. Extract the zip file and open the demo in your browser. To install Mobiscroll in your project follow instructions from this page.


Let us know if we can help and enjoy! 👍

Demos
Alerts & notifications
Alert Notifications Note
Components
Alerts & notifications 3
Buttons 4
Calendar 23
Cards 14
Color 10
Date & Time 16
Event Calendar 20
Forms 9
Grid layout 7
Image 7
Inputs & fields 6
Listview 17
Measurement 10
Navigation 8
Number 8
Numpad 13
Option List 4
Popup 10
Range 18
Scroller 7
Scrollview 5
Select 16
Slider & progress 4
Styling 6
Timer 5
Timespan 6
Toggle & Radio 4
Treelist 7
Theme Select
Mobiscroll
Mobiscroll Dark
Material
Material Dark
iOS
iOS Dark
Windows
Windows Dark
Display Mode
Language Locale
See other demos and change options
Theme
Display
Locale
See other demos