1.0.7 • Published 3 years ago

selectdown v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

selectdown

A dropdown select input for mithril

Example

Demo app

Getting started

npm i --save selectdown

Usage

The basic usage can be seen below, but a better example is the demo included in this project.

const SelectDown = require('selectdown');
m(SelectDown, {
  onchange: () => {},
  onsearch: () => {},

  placeholder: 'Select an item...',

  items: [],
  value: null,
  valueText: null,

  renderListItem: ({ item }) => (
    m('span', { key: item.id }, item.title)
  )
})

License

This project is licensed under the terms of the MIT license.

1.0.2

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago