JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q9550F
  • License ISC

Custom Dropdown

Package Exports

  • choosy-js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (choosy-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

choosy-js

choosy-js is a Custom Dropdown component for Javascript.

Installation

npm i choosy-js

Usage

import Choosy from 'choosy-js';

// Create a new instance from Choosy
const choosyDropDown = new Choosy('<target-selector>');

// Call Choosy's render method with a given data as parameter
const renderer = choosyDropDown.render('<data-to-populate-your-choosy>');

// Append to an element in the DOM
document.getElementById('<target-selector>').innerHTML = renderer;