Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kanety/stimulus-checklist
https://github.com/kanety/stimulus-checklist
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kanety/stimulus-checklist
- Owner: kanety
- License: mit
- Created: 2021-10-30T12:47:49.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-23T01:54:53.000Z (about 3 years ago)
- Last Synced: 2024-12-25T04:04:45.119Z (23 days ago)
- Language: JavaScript
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# stimulus-checklist
A stimulus controller for checkbox list which responds to ctrl and shift click.
## Dependencies
* @hotwired/stimulus 3.0
## Installation
Install from npm:
$ npm install @kanety/stimulus-checklist --save
## Usage
Register controller:
```javascript
import { Application } from '@hotwired/stimulus';
import ChecklistController from '@kanety/stimulus-checklist';const application = Application.start();
application.register('checklist', ChecklistController);
```Import css:
```css
@import '@kanety/stimulus-checklist';
```Build html as follows:
```html
-
text 1
-
text 2
```
### Options
#### filter
Filter checkboxes by css selector:
```html
-
text 1
```
## License
The library is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).