Skip to content

Filterize is a library for making select more user friendly and add a search capability

License

Notifications You must be signed in to change notification settings

edezacas/Filterize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Filterize

Filterize is a library for making select more user friendly and add a search capability.

Requirements

  • jQuery support 1.7+

How to use

<select class="demo">
	<option>Spain</option>
	<option>Italy</option>
	<option>France</option>
	<option>Germany</option>									
	<option>Brazil</option>			
	<option>Argentina</option>
	<option>Andorra</option>
	<option>Faroe Islands</option>									
	<option>Colombia</option>
	<option>Ecuador</option>
	<option>Canad</option>									
</select>

$('.demo').filterize();
    

Options

The following options are available to pass into Filterize on instantiation:

titleText: The text to be displayed for select list. Default: 'Select an option'

noresultsText: The text to be displayed when no matching results are found. Default: 'No results matched'

Example:

$('.demo').filterize({
    titleText: "Select a country",
    noresultsText: "Oh I'm sorry!"
});

Triggerable Events

You can trigger several events on the original select field to invoke a behavior in Filterize (Coming soon more).

filterize:update: When selected options are changed this event should be triggered to update Filterize behavior.

Example:

$('.demo').trigger("filterize:update");

About

Filterize is a library for making select more user friendly and add a search capability

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published