0.0.3 • Published 10 months ago

ngx-input-counter v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

NgxInputCounter

The input number with counter for Angular

Getting Started

Versions

Angularngx-input-counter
>=15.0.0v0.0.x

Instalation

npm i ngx-input-counter

Usage

Import the module

import { NgxInputCounterModule } from 'ngx-input-counter';
@NgModule({
  ...
  imports: [
    ...,
    NgxInputCounterModule,
  ],
})

Use in your components

<ngx-input-counter [(ngModel)]="qty"></ngx-input-counter>

Props

NameTypeDefaultDescription
valuenumber0Initial state of the toggle button
minnumber-InfinityTransition time for the animation
maxnumberInfinityTransition time for the animation
stepnumber1Transition time for the animation
minusTemplateTemplateRef-Pass a TemplateRef to replace the minus button content
plusTemplateTemplateRef+Pass a TemplateRef to replace the plus button content
minusClassstring'ngx-input-counter-button'Classes of the minus button
plusClassstring'ngx-input-counter-button'Classes of the plus button
valueClassstring'ngx-input-counter-value'Classes of value text
disabledbooleanfalseDisables the buttons

Outputs

NamePayloadDescription
changevalueTriggered when state of the component changes. Contains: value - state of the component
0.0.4-beta

10 months ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.2-beta

1 year ago

0.0.1

1 year ago