Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngxm-input

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngxm-input

NgxmInput - simplify, open-source input component for Angular.

  • 0.0.11
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Ngxm-input - simplify, lightweight all in one input for Angular.

See demo page.

##Features

  • Correct behavior show errors message by default
  • Password eye option
  • Loop type search icon
  • Style in css variables
  • Reactive form support
  • JS logic MaxLength

##Getting started

###Step 1: Install:

NPM

npm i --save ngxm-input

###Step 2: Import the NgxmInputModule and angular FormsModule module:

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { NgxmInputModule } from '../../../ngxm-input/src/lib/ngxm-input.module';

@NgModule({
declarations: [AppComponent],
imports: [
  BrowserModule,
  BrowserAnimationsModule,
  ReactiveFormsModule,
  NgxmInputModule,
  FormsModule,
],
bootstrap: [AppComponent],
})
export class AppModule {}

Usage

<form [formGroup]="form" class="demo-box">
  <h1>Example</h1>
  <ngmx-input
    [label]="'Demo input'"
    [formControlName]="'testControl'"
  >
  </ngmx-input>
</form>

API

Inputs

InputTypeDefaultRequiredDescription
[type]text, number, password, searchtextnoType input
[label]stringnullnoLabel for input
[pattern]string, RegExpnullnoPattern validation
[enableLoop]booleanfalsenoLoop icon for search type input
[enableEye]booleanfalsenoEye icon logic for password type input
[error]stringnullnoError text
[required]booleanfalsenoRequired attribute and show * in label flag
[description]stringnullnoDescription text
[formControlName]stringnullnoControl form angular
[placeholder]stringnullnoPlaceholder text
[maxLength]numbernullnoMax-length parameter
[disableErrorMessage]booleanfalsenoShow/hide error message flag

FAQs

Package last updated on 16 Jun 2022

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc