Skip to content

Intuitive custom select element written in pure javascript.

License

Notifications You must be signed in to change notification settings

anasterism/asterism-select

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Asterism Custom Select

An inuitive custom select element written in pure javascript.

Usage:

<link rel="stylesheet" href="dist/select.min.css">
<script type="text/javascript" src="dist/select.min.js"></script>
// Instantiate with a DOM object...
var el     = document.querySelector('#movies');
var select = new Select(el, { /* settings */ });

// ... or a selector
var select2 = new Select('#music', { /* settings */ });

Options:

  • filtered (mixed) – Should the 'filter options' input be displayed? Default: 'auto'
  • filter_threshold (int) – When a select contains x options or more, display the filter input. Default: 8
  • filter_placeholder (string) – Placeholder text for the filter input. Default: 'Filter options...'

About

Intuitive custom select element written in pure javascript.

Resources

License

Stars

Watchers

Forks

Packages

No packages published