0.0.11 • Published 4 years ago

hyperapp-multiselect v0.0.11

Weekly downloads
43
License
MIT
Repository
github
Last release
4 years ago

Hyperapp Multiselect

A Multiselect built with Hyperapp framework.

Demo

Install

npm i hyperapp-multiselect

Integration

import MultiSelect from "hyperapp-multiselect";

const state = {
  carBrandSelect: MultiSelect.initialState
};

const actions = {
  carBrandSelect: MultiSelect.actions
};

const view = (state, actions) => {
  const { carBrandSelect: multiSelectState } = state;
  const { carBrandSelect: multiSelectActions } = actions;

  return (
    <div>
      <MultiSelect
        state={multiSelectState}
        actions={multiSelectActions}
        isFilterable
        canSelectAll
        dropdownIcon={CustomDropdownArrowIcon}
        filterIcon={CustomFilterIcon}
      />
    </div>
  );
};

const myApp = app(state, actions, view, document.body);

// fills in options
myApp.carBrandSelect.updateOptions(['GM', 'Toyota', 'Volkswagen'...])

License

MIT licensed. See LICENSE.

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.5

4 years ago

0.0.6

4 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago