dynamic-custom-checkbox
TypeScript icon, indicating that this package has built-in type declarations

0.0.11 • Public • Published

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

import { CheckboxModule } from 'dynamic-custom-checkbox';
 
@NgModule({
  imports: [
    CheckboxModule
  ]
})

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>
 
customClick = (event) => {
    console.log("print the event value : ", event);
};

Package Sidebar

Install

npm i dynamic-custom-checkbox

Weekly Downloads

4

Version

0.0.11

License

MIT

Unpacked Size

113 kB

Total Files

24

Last publish

Collaborators

  • siddharth-modules