option-tree

a data source for a unidirectional combobox with nested options

Usage no npm install needed!

<script type="module">
  import optionTree from 'https://cdn.skypack.dev/option-tree';
</script>

README

option-tree

  • next - selNext

  • prev - selPrev

  • select(option)

  • active() -> any

  • isActive(any) -> bool

  • options() -> array

  • value() -> array

  • actions()

  • filter() -> function

  • setQuery(string)

  • setOptions()

  • setValue()

  • setActions(array of fns)

  • setFilter(fn)