0.0.7 • Published 6 years ago

uix-mat-number-spinner v0.0.7

Weekly downloads
41
License
ISC
Repository
github
Last release
6 years ago

Uix MatNumberSpinner

A better way to manage input spinner elements for number input, extending angular material for angular 6. You just have to use Angular material.

This component hides the native spinners from browsers. (you also can do it by using css)

This component is an extension from angular material https://material.angular.io/

Examples

Using standar input from angular material

Alt text

Using outline input from angular material

Alt text

Quick Start

Install

npm i --save uix-mat-number-spinner

Import the module

// app.module.ts...
import { UixMatNumberSpinnerModule } from "uix-mat-number-spinner";
// ...
@NgModule({
  imports: [
    //...
    UixMatNumberSpinnerModule
  ],
})
export class AppModule {}

Place the UixMatNumberSpinnerComponent in your app component

Put <uix-mat-number-spinner></uix-mat-number-spinner> somewhere.

<!-- OUTLINE INPUT app.component.html -->
<mat-form-field appearance="outline" class="mat-cell-input-number" >
  <uix-mat-number-spinner increase="0.5" decrease="0.15" fix="2" type="outline" [(value)]="number1"></uix-mat-number-spinner>
	<input matInput value="0" type="number" [(ngModel)]="number1" >
</mat-form-field>


<!-- DEFAULT INPUT app.component.html -->
<mat-form-field class="mat-cell-input-number" >
  <uix-mat-number-spinner increase="0.5" decrease="0.15" fix="2"  [(value)]="number1"></uix-mat-number-spinner>
	<input matInput value="0" type="number" [(ngModel)]="number1" >
</mat-form-field>

Authors

  • Mauricio Joost Wolff - Initial work - GitHub

License

This project is licensed under the MIT License - see the LICENSE.md file for details

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago