# ngx-material-inputs

> this is a angular material input To make you comfortable for using inputs in angular .

Latest version **0.0.3** (published 2020-05-29) · 0 weekly downloads

## Install

```sh
npm install ngx-material-inputs
pnpm add ngx-material-inputs
yarn add ngx-material-inputs
bun add ngx-material-inputs
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2020-05-29 |
| First published | 2020-05-29 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 140.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | makbari1994 |
| Keywords | angular, ngx input, ngx material input, ngx angular input, input, material, material input, angular material input, angular9 material input, angular 9 material input, angular 9, angular9, js, typescript, ts |

## Links

- npm: https://www.npmjs.com/package/ngx-material-inputs
- npm.io page: https://npm.io/package/ngx-material-inputs

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^1.10.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.0.3 (latest) — 2020-05-29
- 0.0.2 — 2020-05-29
- 0.0.1 — 2020-05-29

## README

# ngxMaterialInputs

this is a angular material input  To make you comfortable  for using inputs in angular   .

## Demo 

![demo](https://akbar-baba.ir/material_input.gif)

## install 

Run `npm i ngx-material-inputs`

 
## add Library  to app.module.ts

```
import { NgxMaterialInputsModule } from 'ngx-material-inputs';/// add this line 
import { FormsModule } from '@angular/forms';/// add this line 

```

and import 

```
imports: [
    BrowserModule,
    FormsModule,/// add this line 
    NgxMaterialInputsModule,  /// and  add this line 
    AppRoutingModule,
  ],
```


## full example of  add to app.module.ts

```
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { FormsModule } from '@angular/forms';/// add this line 
import { NgxMaterialInputsModule } from 'ngx-material-inputs';/// add this line 


@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,/// add this line 
    NgxMaterialInputsModule,  /// and  add this line 
    AppRoutingModule,
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }


```


### how to use => you can use angular ngModel to get input value. and you can use all angular input events for example (keyup) or (keydown) or (focus) or (click) and other angular events 
```
 <akbari-material-input [(ngModel)]="input"  title="input-title" direction="rtl" width="40%"  ></akbari-material-input>

```
## use with events 

in html

```
    <akbari-material-input [(ngModel)]="input" (keyup)="keyup()" ></akbari-material-input>
```

in ts 

```
 keyup() {

 }

```


## Inputs 

#### direction =>  type ="string"  => values 'rtl' or 'ltr'

you can pass direction in  string format;

example 

```
    <akbari-material-input direction="rtl"  ></akbari-material-input>

or 

    <akbari-material-input direction="ltr"  ></akbari-material-input>


or


<akbari-date-picker [direction]="'rtl'"  ></akbari-date-picker>


```


#### width =>  type ="string"  => values in precen for example '50%' or pixel for example '50px'

you can pass width string format;

example 

```
    <akbari-material-input width="40%"  ></akbari-material-input>


or 

    <akbari-material-input width="40px"  ></akbari-material-input>


or

<akbari-date-picker [width]="'40px'"  ></akbari-date-picker>


```
#### title =>  type ="string"  => this is for input title

you can pass width string format;

example 

```
    <akbari-material-input title="input-title"  ></akbari-material-input>


```





## finall

  report bugs to makbarics@gmail.com

  hope to enjoy it .

---
_Source: https://npm.io/package/ngx-material-inputs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
