uix-mat-number-spinner
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i uix-mat-number-spinner

    Weekly Downloads

    47

    Version

    0.0.7

    License

    ISC

    Unpacked Size

    134 kB

    Total Files

    23

    Last publish

    Collaborators

    • mauriciojoostwolff