0.0.27 • Published 4 years ago

@lucasheight/angular-controls v0.0.27

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

npm version

Angular-controls

Number Input Component

A number input component. Features

  • Provides a 'factor' attribute to allow a display multiplication without change to model value. This is useful when you want to display a decimal value as a percentage (i.e. 01 * 100).
  • Prefix and postfix inputs to allow display of additional strings.
  • Supports template and reactive forms.
  • Attributes for title, placeholder, disabled and decimals.

Installation

Install the library from npm:

npm install --save @lucasheight/angular-controls

Using component

Import the module into your angular application module.

import {LhControlsModule} from "@lucasheight/angular-controls"
@NgModule({
    imports:[
      LhControlsModule
    ]
})
export class AppModule{}

Add the control in you template:

<lh-numberInput factor="1" decimals="2" title="Hello numbers" placeholder="Please enter" prefix="$" postfix=" AUD" (valueChange)="onChange($event)" (focus)="onFocus($event)"
    (blur)="onBlur($event)" width="100" [(value)]="val"></lh-numberInput>
0.0.26

4 years ago

0.0.27

4 years ago

0.0.23

4 years ago

0.0.24

4 years ago

0.0.25

4 years ago

0.0.22

4 years ago

0.0.21

4 years ago

0.0.20

4 years ago

0.0.19

4 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago