Git Product home page Git Product logo

ngx-checkbox-lib's Introduction

NgxCheckboxLib

A lightweight plugin to display a modern checkbox.

Features

  • highly customizable
  • very easy to implement

Demo

Get started

Installation

$ npm i ngx-i24-checkbox

Example

TS
Module
import { NgxCheckboxModule } from 'ngx-i24-checkbox';
@NgModule({
  declarations: [ AppComponent ],
  imports: [BrowserModule, NgxCheckboxModule ],
  bootstrap: [AppComponent]
})
export class AppModule { }
Component
import { Component } from '@angular/core';
@Component({
 selector: 'app-root',
 templateUrl: './app.component.html',
 styleUrls: ['./app.component.scss']
})
export class AppComponent { 
}
HTML
  <ngx-checkbox></ngx-checkbox>

  <!-- Or you can simply use directive -->
  <!-- Note: type should be `checkbox`  -->
  <input NgxCheckbox type="checkbox" />

Options

Property (Type) Default Description
color '#3c3c3c' The color of check
backColor '#fff' The background of checkbox
borderColor '#c6c6c6' The border color
shadow '0px 0px 4px 1px #6c6c6c' The shadow of the checkbox
cWidth '20px' The width of the checkbox
cHeight '20px' The height of the checkbox
checkWidth '6px' The width of the checkbox signal
checkHeight '10px' The height of the checkbox signal
value true The default value

Events

  • checkedChanged - triggered on change the value

Other Projects

Name Link Description
ngx-i24-circular-progress Link A lightweight plugin to render a simple, animated circular progress bar.
ngx-i24-progress-bar Link A lightweight plugin to render a simple, animated progress bar.
ngx-weekday-picker Link Lightweight plugin to a pick weekday.
ngx-i24-color-picker Link A lightweight plugin to pick a color.
ngx-i24-checkbox Link A lightweight plugin to display a modern checkbox.

Support

Copyright

Copyright (c) 2022 Yaseen Alrefaee, contributors. Released under the MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.