EhabBug / dropdown-check-list

Automatically exported from code.google.com/p/dropdown-check-list
0 stars 0 forks source link

add a limit of number of options select. #184

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello. As this plugging jump over the select element to display the options, I 
think that can be possible a function to say I only want that people  be able 
to select 3 or 4 or 5 elements in a multiselect.

When the user select the limit them all the options that are not select can be 
turn to only-read.

thanks

Oskar

Original issue reported on code.google.com by oscar.ca...@gmail.com on 18 May 2011 at 10:07

GoogleCodeExporter commented 8 years ago
The configuration option 'onItemClick' allows you to define a function that is 
fired on every item click.  This callback can suppress the click operation by 
throwing an error.
You can do whatever processing you want within the callback. Is this sufficient 
for your needs?

Original comment by womohun...@ittrium.com on 18 May 2011 at 3:06

GoogleCodeExporter commented 8 years ago
Version 1.4 includes a sample of onItemClick callback where you can apply a 
limit.

Original comment by womohun...@ittrium.com on 14 Jun 2011 at 9:18