Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bree7e/ngx-input-suffix

Angular directive that render helper text to the right of input text
https://github.com/bree7e/ngx-input-suffix

angular angular2 input suffix typescript

Last synced: about 2 months ago
JSON representation

Angular directive that render helper text to the right of input text

Awesome Lists containing this project

README

        

# ngx-input-suffix

## Demo

![ngx-input-suffix demo](https://raw.githubusercontent.com/bree7e/ngx-input-suffix/master/assets/ngx-input-suffix-demo.gif)

[Demo application](https://bree7e.github.io/ngx-input-suffix/)

## Installation

To install this library, run:

```bash
$ npm install ngx-input-suffix ngx-window-token --save
```

and then import module:

```typescript
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

import { NgxSuffixModule } from 'ngx-input-suffix'; // <===

@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgxSuffixModule // <===
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
```

## Usage
`ngxSuffix` should place inside `ngxSuffixWrapper`
```html




```

## Customization
There is `--ngx-input-suffix__text-color` css variable to set suffix color. Default color is grey.
```css
.wrapper {
--ngx-input-suffix__text-color: black;
}
```