0.1.0 • Published 6 years ago

select-widget v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Select Widget

CircleCI

Pure functionality, no styles included.

Setup

Getting started with Development

  • npm install to get the project's dependencies.
  • npm run server to start development server with live-reload and hot module replacement
  • go to http://localhost:8080/index.html

Scripts

  • npm run server - starts development server with live-reload and hot module replacement
  • npm run build - produces production version under the dist folder
  • npm run test - runs tests.

Usage

npm i select-widget

   <div class="select"></div>
   
import Select from 'select-widget';
const select = new Select({
  element: document.querySelector('.select'),
  data: ['A', 'B', 'C'],
  onChange(rawData, selected) {
    
  }
})

select.on('change', (a, b) => console.log(a, b));

see src/examples.js for more usages.

0.1.0

6 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago