Multi Select List View Plugin With jQuery Bootstrap multilist - Download Multi Select List View Plugin With jQuery And Bootstrap - multilist

Download Multi Select List View Plugin With jQuery And Bootstrap – multilist

Posted on

This time I will share jQuery Plugin and tutorial about Multi Select List View Plugin With jQuery And Bootstrap – multilist, hope it will help you in programming stack.

Multi Select List View Plugin With jQuery Bootstrap multilist - Download Multi Select List View Plugin With jQuery And Bootstrap - multilist
File Size: 15.6 KB
Views Total: 5253
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

multilist is a jQuery plugin which converts an html list into a Bootstrap list group that allows to select multiple items and can be loaded via JSON objects.

How to use it:

1. Load the required jQuery library and Bootstrap’s stylesheet in the document.

1 <link rel="stylesheet" href="/path/to/bootstrap.min.css">
2 <script src="/path/to/jquery.min.js"></script>

2. Load the jQuery multilist plugin’s files in the document.

1 <link rel="stylesheet" href="multi-list.css">
2 <script src="jquery.multilistbootstrap_plugin.js"></script>

3. Prepare your data as follows:

01 var myData = ["Element 1", "Element 2", "Element 3"]
02  
03 // or
04 var myData = [
05     {
06       category: "Element 1",
07       addon: 10 // count displayed in the badge
08     },
09     {
10       category: "Element 2",
11       addon: 20
12     },
13     {
14       category: "Element 3",
15       addon: 29
16     }
17 ];

4. Create an empty html list in the webpage.

1 <ul id="demo">
2 </ul>

5. Render a basic list view inside the html list.

1 $("#demo").MultiList({
2   data:{
3     dataSource: myData
4   }
5 });

6. All default configuration options..

1 $("#demo").MultiList({
2   showTitle: true,
3   title: "MultiLista",
4   showAddon: true,
5   colorFont: "black",
6   backgroundColor: "white",
7   data: {}
8 });

This awesome jQuery plugin is developed by hectorlr22. For more Advanced Usages, please check the demo page or visit the official website.

source : jqueryscript.net