1.0.1 • Published 6 years ago
quick-checkbox-select v1.0.1
quick-checkbox-select
| Quickly select and deselect multiple checkboxes by moving your mouse over them (the mouse needs to be pressed)
Install
npm install --save quick-checkbox-select
Usage
The function is called quickSelect
but feel free to call it whatever when you import.
note: the checkbox has to be default HTML, no replacing the input with a span
React Usage
If you are using React you have to make use of the componentDidMount()
and useEffect()
functions.
Class Component
componentDidMount() {
quickSelect()
}
Function Component
useEffect(() => quickSelect())