Skip to content

nivaska/web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jquery plugins in the repo

  • Multiselect dropdown
  • Custom Context Menu

MultiSelect Dropdown

This is a jquery plugin to create multiselect html dropdown

Usage

$("#testDiv").multiselect();

Following configuration options are available:

  • "label": set a label for the control
  • "dropdownList": set the list of string choices to be dispayed in the dropdown
  • "showExecuteButton": set the boolean option to true to display "Execute" button
  • "executeSelected": set the function to be executed when the "Execute" button is clicked
    • function receives an array parameter containing the selected list values

Example

$("#testDiv").multiselect({
  label: "Select Fruit",
  dropdownList: ["Apple", "Banana", "Mango"],
  showExecuteButton: true,
  executeSelected: function(selectedValues) {
    alert("I selected " + selectedValues.length + " options");
  }
});

Example

Custom Context Menu