# @jswork/next-abstract-checkbox

> Abstract checkbox for next.

Latest version **1.0.4** (published 2021-08-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @jswork/next-abstract-checkbox
pnpm add @jswork/next-abstract-checkbox
yarn add @jswork/next-abstract-checkbox
bun add @jswork/next-abstract-checkbox
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2021-08-30 |
| First published | 2021-08-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 10.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | afei |
| Maintainers | afeiship |
| Keywords | next, checkbox, helper, select-all, unselect, deselect, checked, unchecked |

## Links

- npm: https://www.npmjs.com/package/@jswork/next-abstract-checkbox
- Homepage: https://github.com/afeiship/next-abstract-checkbox
- npm.io page: https://npm.io/package/@jswork/next-abstract-checkbox

## Dependencies (2)

- [deep-equal](https://npm.io/package/deep-equal.md) ^2.0.5
- [@jswork/next-remove](https://npm.io/package/@jswork/next-remove.md) ^1.0.0

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2021-08-30
- 1.0.3 — 2021-08-25
- 1.0.2 — 2021-08-25
- 1.0.1 — 2021-08-11
- 1.0.0 — 2021-08-11

## README

# next-abstract-checkbox
> Abstract checkbox for next.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

<img src="./docs/Checkbox.png" width="100%"/>

## installation
```bash
npm install -S @jswork/next-abstract-checkbox
```

## apis
| api              | params | description                                  |
| ---------------- | ------ | -------------------------------------------- |
| checked          | -      | Property: Get the list checked status.       |
| indeterminate    | -      | Property: Get the list indeterminate status. |
| ids              | -      | Property: Get the all the list ids.          |
| select           | -      | Method: Select checkbox by id.               |
| selectMultiple   | -      | Method: Select checkbox by id list.          |
| selectAll        | -      | Method: Select all the checkbox.             |
| unSelect         | -      | Method: Deselct checkbox by id.              |
| unSelectMultiple | -      | Method: Deselct checkbox by id list.         |
| unSelectAll      | -      | Method: Deselct all the checkbox.            |
| get              | -      | Method: Get runtime ids list.                |

## usage
```js
import NxAbstractCheckbox from '@jswork/next-abstract-checkbox';

const checkboxer = new NxAbstractCheckbox({ 
  idKey: 'uuid', 
  items:[], 
  onChange: (e)=>{ 
    console.log(e.target.value);
  } 
});

const res = checkboxer.select(['4c4e97a96dc164db144452acdf993531']);

// ['4c4e97a96dc164db144452acdf993531']
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-abstract-checkbox/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-abstract-checkbox
[version-url]: https://npmjs.org/package/@jswork/next-abstract-checkbox

[license-image]: https://img.shields.io/npm/l/@jswork/next-abstract-checkbox
[license-url]: https://github.com/afeiship/next-abstract-checkbox/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-abstract-checkbox
[size-url]: https://github.com/afeiship/next-abstract-checkbox/blob/master/dist/next-abstract-checkbox.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-abstract-checkbox
[download-url]: https://www.npmjs.com/package/@jswork/next-abstract-checkbox

---
_Source: https://npm.io/package/@jswork/next-abstract-checkbox · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
