1.0.7 • Published 3 years ago
selectdown v1.0.7
selectdown
A dropdown select input for mithril
Example
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.