Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lucasheight/angular-controls

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lucasheight/angular-controls

[![npm version](https://badge.fury.io/js/%40lucasheight%2Fangular-controls.svg)](https://badge.fury.io/js/%40lucasheight%2Fangular-controls) # Angular-controls

  • 0.0.24
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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>

Keywords

FAQs

Package last updated on 30 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc