0.1.0 • Published 2 years ago

okaselect v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Main License: MIT

okaselect

This is a convenient tool for the features of selecting.
You can select your items with some petterns: ctrl-select, multi-select, all-select and so on by this tool.

usage

yarn add okaselect
import { useSelectable } from 'okaselect'

const items = { a: {}, b: {}, c: {} }
const selectable = useSelectable(() => items)

// single select
selectable.select('a')
console.log(selectable.getSelectedIds()) // => ['a']
selectable.select('b')
console.log(selectable.getSelectedIds()) // => ['b']

// ctrl select
selectable.select('c', true)
console.log(selectable.getSelectedIds()) // => ['b', 'c']
console.log(selectable.getLastSelectedId()) // => 'c'

commnad

# install dependencies
$ yarn install

# lint
$ yarn lint

# test
$ yarn test [--watch]

# build
$ yarn build

publish

Create new release on Github.

0.1.0

2 years ago

0.0.12

3 years ago

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.6

4 years ago

0.0.3

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago