Home > Other > Asterism Custom Select – Filterable Select Box In Pure JavaScript
Asterism Custom Select – Filterable Select Box In Pure JavaScript

Asterism Custom Select – Filterable Select Box In Pure JavaScript

Asterism Custom Select is a JavaScript library that allows you to create custom select boxes with item filtering support.

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...'
  Website

About admin