Dynamic checkbox component
Dynamic custom checkbox is highly configrable and easy to use.
Table of contents
Features
- Custom Checkbox bindings to property or object
- Custom theme changes
- Custom label text
- Custom Enable/Disable mode
- No external dependencies (easy to use!),
- Minimal styling (easy to customize!),
- Great performance.
Installation
$ npm i dynamic-custom-checkbox
Getting started
; @
API
Input | Type | Default | Required | Description |
---|---|---|---|---|
[customBgColor] | string | #eee |
no | Will add background-color (#ddd) of the checkbox. |
[customArrowColor] | string | #fff |
no | Will add arrow-color (#ff0000) of the checkbox. |
[boxType] | string | square |
no | Can change the shape of the checkbox to circle . Default square . |
[customBorderColor] | string | #333 |
no | Will add border-color of the checkbox. |
[customSize] | string | medium |
no | Will increase/decrease the size of the checkbox 3 more options small ,large ,Xlarge . |
[labelContent] | string | Label |
no | Will change the label text. |
[checkbox] | boolean | false |
no | If you want to checked the checkbox by defalut. Set it totrue . |
[boxdisabled] | boolean | false |
no | If you want to disabled the checkbox by defalut. Set it totrue . |
[customClick] | Function | false |
no | Allow to create custom click function that is invoked onChange event of checkbox. |
Basic example
<dynamic-custom-checkbox customBgColor="'#ddd'" customArrowColor="'red'" boxType="'circle'" customBorderColor="'blue'" customSize="'Xlarge'"labelContent="'siddharth'"customClick="customClick($event)"checkbox="true"boxdisabled="true"></dynamic-custom-checkbox> { console;};