Abstract checkbox for next.
npm install -S @jswork/next-abstract-checkbox
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. |
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']
Code released under the MIT license.