axiom-toggle
v1.0.1
Published
A toggle component for angular, support colors and two different ui mode
Downloads
7
Maintainers
Readme
Axiom ngx-toggle
Online Demo
Installation
Install component package from npm :
npm install axiom-toggle
Import component module :
import { AxiomToggleModule } from 'axiom-toggle';
...
@NgModule({
imports: [
BrowserModule,
AxiomToggleModule,
],
declarations: [
AppComponent
],
bootstrap: [AppComponent]
})
...
Usage
Use ngModel
<ax-toggle [(ngModel)]="model"
axMode="round"
axColor="indigo">
</ax-toggle>
Use ReactiveFroms
<ax-toggle formControlName="model"
axMode="round"
axColor="indigo">
</ax-toggle>
@Input() Params
| Name | Usage | | ------ | ------ | | axMode | round,flat (default=flat) | | axColor | purple,indigo,pink,red,cyan,green,yellow,amber,orange,brown |
@Output() Params
| Name | Usage | | ------ | ------ | | ngModelChange | Model's change default event |