Giter Site home page Giter Site logo

ngx-tags-input-box's Introduction

STAR

Ngx-tags

Tags input component for angular projects (Also supports angular 9)

Creative tags input with mutiple color variance and limitable tag range.

Preview demo

This preview was generated with Stackblitz STAR

Angular version

This library was generated with Angular CLI version 9.1.9.

Code integration

To use this package as a service npm i ngx-tags-input-box install this on the root angular project .

Note: Don't forget to run this commend npm i ngx-tags-input-box on root folder or else it will throw error.

Import

Import the module on your app.module.ts file as follow.

import { NgxTagsModule } from "ngx-tags-input-box";

Then import the module as follow on imports array

NgxTagsModule

Using

After importing this library with npm install ngx-tags-input-box, go to the component which is declared under app.module.ts and integrate as below.

Tags input module

<ngx-tags-input [limit]="limit" [header]="header" [placeholder]="placeholder" [mode]="mode" (tagsChange)="displayTags($event)"></ngx-tags-input>

mode : (required) value shoule be primary | success | danger | info | warning

limit : (required) value shoule be 0 - n (default 5)

placeholder : (required) value shoule be anything...

header : (optional) value shoule be anything...

Retrive list as tags entered

On your component file where you are using ngx-tag-input

tagsInput = []; //any variable where you want to hold as list.

##Function call

displayTags(tag) { this.tagsInput = tag; }

Further help

To get more help on the usage check out the Ngx rating star README.

ngx-tags-input-box's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.