Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mobius1-selectr

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobius1-selectr

A lightweight dependency-free javascript select box replacement.

  • 2.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
179K
increased by6.63%
Maintainers
1
Weekly downloads
 
Created

What is mobius1-selectr?

The mobius1-selectr npm package is a lightweight, dependency-free JavaScript library for creating customizable and feature-rich select boxes. It provides a variety of functionalities to enhance the user experience with dropdowns, including multi-select, search, and custom styling.

What are mobius1-selectr's main functionalities?

Basic Initialization

This code initializes a basic Selectr instance on a select element with the ID 'mySelect'.

const selectr = new Selectr('#mySelect');

Multi-Select

This code initializes a Selectr instance that allows multiple selections.

const selectr = new Selectr('#mySelect', { multiple: true });

Searchable Dropdown

This code initializes a Selectr instance with a search input to filter options.

const selectr = new Selectr('#mySelect', { searchable: true });

Custom Styling

This code initializes a Selectr instance with a custom CSS class for styling.

const selectr = new Selectr('#mySelect', { customClass: 'my-custom-class' });

Option Groups

This code initializes a Selectr instance with grouped options.

const selectr = new Selectr('#mySelect', { data: [{ text: 'Group 1', children: [{ value: '1', text: 'Option 1' }, { value: '2', text: 'Option 2' }] }, { text: 'Group 2', children: [{ value: '3', text: 'Option 3' }, { value: '4', text: 'Option 4' }] }] });

Other packages similar to mobius1-selectr

Keywords

FAQs

Package last updated on 25 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc