Skip to content

pipiscrew/bootstrap-selector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bootstrap-selector

The most unsual control to find is a checkboxlist or listcheckbox. I bring a bootstrap solution based on List group.

alt

The element

<div id="jobs_users" class="list-group centre" ></div>

The functions :

$(function() {
    //////////////// SELECTOR
    //**attach the event
    $('#jobs_users').chooser();
    
    
//pass an array with id and usernames to fillList function to autofill the List group
$("#jobs_users").fillList(jArray_USERS, "Users", "id", "user");

//set all items selected
$('#jobs_users').setAll(true);

//get all selected ids
$("#jobs_users").getSelected();

//set selected items by an array contains ids (useful when fetching data from backend)
$("#client_s_users").setSelected(dataP,"user_id")

please see the examples.

Example at jsfiddle

##This project uses the following 3rd-party dependency :
-Bootstrap

##This project is no longer maintained

Copyright (c) 2017 PipisCrew

Licensed under the MIT license.

similar chosen

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages