Socket
Book a DemoInstallSign in
Socket

ngx-input-suffix

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-input-suffix

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

2.0.0
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

ngx-input-suffix

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

Demo

ngx-input-suffix demo

Demo application

Installation

To install this library, run:

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

and then import module:

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

<div ngxSuffixWrapper>
  <input ngxSuffix=".example.com"/>
</div>

Support initial value

<div ngxSuffixWrapper>
  <input ngxSuffix=".example.com" value="domain" />
</div>
<div ngxSuffixWrapper>
  <input ngxSuffix=".angular.com" [(ngModel)]="domain" />
</div>

Customization

There is --ngx-input-suffix__text-color css variable to set suffix color. Default color is grey.

.wrapper {
  --ngx-input-suffix__text-color: black;
}

FAQs

Package last updated on 15 Apr 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.