@amitgroup/toggle-switch
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

ToggleSwitch

This library was generated with Angular CLI version 13.2.0.

How to use

Step 1

Import ToggleSwitchModule to AppModule

{
    imports: [
    ...
    ToggleSwitchModule
    ...
  ]
}

or

{
  imports: [
    ...
    ToggleSwitchModule.forRoot(options)
    ...
  ]
}

Step 2

Add am-toggle-switch tag in component as HTML tag with 2 options [(ngModel)] or formControlName

<am-toggle-switch [(ngModel)]="test" (ngModelChange)="onInputChange($event)"></am-toggle-switch>

or

<form [formGroup]="formGroup">
    <am-toggle-switch formControlName="test"></am-toggle-switch>
</form>

Inputs

Input Type Default
[disabled] boolean false
formControlName formControlName

Readme

Keywords

none

Package Sidebar

Install

npm i @amitgroup/toggle-switch

Weekly Downloads

0

Version

0.0.3

License

ISC

Unpacked Size

66.7 kB

Total Files

18

Last publish

Collaborators

  • amitgroup