0.1.0 • Published 1 year ago

okaselect v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago