All Projects → github → check-all

github / check-all

Licence: MIT license
Multiple checkbox selection helper.

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects
Dockerfile
14818 projects

Labels

Projects that are alternatives of or similar to check-all

discord-nestjs
👾 NestJS package for discord.js
Stars: ✭ 173 (+147.14%)
Mutual labels:  decorator
performance-decorator
🏇User behavior & Function execution tracking solution - 大型前端项目的用户行为跟踪,函数调用链分析,断点调试共享化和复用化实践
Stars: ✭ 39 (-44.29%)
Mutual labels:  decorator
oh-my-design-patterns
🎨 Record the articles and code I wrote while learning design patterns
Stars: ✭ 33 (-52.86%)
Mutual labels:  decorator
typescript-retry-decorator
lightweight typescript retry decorator with 0 dependency.
Stars: ✭ 50 (-28.57%)
Mutual labels:  decorator
strongtyping
Decorator which checks whether the function is called with the correct type of parameters.
Stars: ✭ 85 (+21.43%)
Mutual labels:  decorator
burgundy
A simple wrapper for objects (think of Burgundy as a decorator/presenter) in less than 150 lines.
Stars: ✭ 48 (-31.43%)
Mutual labels:  decorator
typescript-lazy-get-decorator
Lazily evaluates a getter on an object and caches the returned value
Stars: ✭ 33 (-52.86%)
Mutual labels:  decorator
presenter
Easy class decoration.
Stars: ✭ 13 (-81.43%)
Mutual labels:  decorator
pyplugs
Decorator based plugin architecture for Python
Stars: ✭ 56 (-20%)
Mutual labels:  decorator
Hotkey
Trigger an action on an element with a keyboard shortcut.
Stars: ✭ 2,389 (+3312.86%)
Mutual labels:  decorator
laravel-decorator
Easily decorate your method calls with laravel-decorator package
Stars: ✭ 125 (+78.57%)
Mutual labels:  decorator
textarea-autosize
Autosizes textarea to size of it's contents.
Stars: ✭ 73 (+4.29%)
Mutual labels:  decorator
bash-cache
Transparent caching layer for bash functions; particularly useful for functions invoked as part of your prompt.
Stars: ✭ 45 (-35.71%)
Mutual labels:  decorator
vue-corator
this is vue decorator utils
Stars: ✭ 33 (-52.86%)
Mutual labels:  decorator
combobox-nav
Attach combobox navigation behavior to <input> or <textarea>.
Stars: ✭ 76 (+8.57%)
Mutual labels:  decorator
ngx-redux-core
The modern redux integration for Angular 6+
Stars: ✭ 32 (-54.29%)
Mutual labels:  decorator
python-makefun
Dynamically create python functions with a proper signature.
Stars: ✭ 62 (-11.43%)
Mutual labels:  decorator
singleton decorator
A testable singleton decorator
Stars: ✭ 39 (-44.29%)
Mutual labels:  decorator
session-resume
Annotate fields to be persisted on navigation away from the current page
Stars: ✭ 105 (+50%)
Mutual labels:  decorator
python-valid8
Yet another validation lib ;). Provides tools for general-purpose variable validation, function inputs/outputs validation as well as class fields validation. All entry points raise consistent ValidationError including all contextual details, with dynamic inheritance of ValueError/TypeError as appropriate.
Stars: ✭ 24 (-65.71%)
Mutual labels:  decorator

Check All

  • Check/uncheck [data-check-all] to check/uncheck all checkboxes in a container.
  • Shift click on [data-check-all-item] to select all checkboxes between the last checked checkbox and the target checkbox.
  • Auto-update [data-check-all-count] to count of checked items.

Installation

$ npm install @github/check-all

Usage

JS

import checkAll from '@github/check-all'
checkAll(document.querySelector('[data-check-all-container]'))

Using a library like selector-observer, the behavior can automatically be applied to any container matching a selector.

import {observe} from 'selector-observer'
import checkAll from '@github/check-all'

observe('[data-check-all-container]', { subscribe: checkAll })

HTML

<div data-check-all-container>
  Count: <span data-check-all-count>0</span>
  <label><input type="checkbox" data-check-all> Check All</label>
  <label><input type="checkbox" data-check-all-item> github/fetch</label>
  <label><input type="checkbox" data-check-all-item> github/textarea-autosize</label>
  <label><input type="checkbox" data-check-all-item> github/eventlistener-polyfill</label>
  <label><input type="checkbox" data-check-all-item> github/quote-selection</label>
</div>

Development

npm install
npm test

License

Distributed under the MIT license. See LICENSE for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].