Two Bootstrap plug-ins: Bootstrap-select and bootstrap-paginator

Source: Internet
Author: User

Bootstrap-based selector http://silviomoreto.github.io/bootstrap-select/

            <label for="androids" class="control-label" style="text-align: center">Android: </label>            <select name="androids" id="androids" class="selectpicker" multiple title=‘All‘>                <c:forEach var="android" items="${androids}">                    <option value="${android}">${android}</option>                </c:forEach>            </select>

Use class = "selectpicker" to set the selector.

 

Bootstrap-based paging plug-ins support bootstrap2 and bootstrap3 https://github.com/lyonlai/bootstrap-paginator

Example:

        var options = {            totalPages:  ${totalPages},            currentPage: ${currentPage},            numberOfPages: 5,            bootstrapMajorVersion: 3,            itemTexts: function (type, page, current) {                switch (type) {                    case "first":                        return "First";                    case "prev":                        return "Previous";                    case "next":                        return "Next";                    case "last":                        return "Last";                    case "page":                        return page;                }            },            onPageClicked: function (e, originalEvent, type, page) {                var url = ‘devices-filter-‘ + page + ‘.html‘;                if ($("#devices").find("option:selected").text() == ‘All‘ &&                        $("#androids").find("option:selected").text() == ‘All‘ &&                        $("#boards").find("option:selected").text() == ‘All‘)                    url = ‘devices-page-‘ + page + ‘.html‘;                var data = $("#device_filter").serialize();                go(url, data);            }        };        $(‘#pagination‘).bootstrapPaginator(options);

Use the bootstrap pagination component on the page: bootstrap3 uses UL and bootstrap2 uses Div

<div class="text-center">  <ul class="pagination" id="pagination"></ul></div>

 

Two Bootstrap plug-ins: Bootstrap-select and bootstrap-paginator

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.