0.0.13 • Published 10 years ago
ng2-chips v0.0.13
ng2-chips
Input Module with chips based on Angular 2. This module is designed with autocomplete.
Quick Start
npm install ng2-chips --saveBased Image
This module is based on Repo by rosslavery/angular2-tag-input
Thank you for this great work. This module licensed based on ISC, too.
Implemenate
// In one of your application components
import {TagInputComponent} from 'angular2-tag-input';
@Component({
selector: 'your-component-selector',
directives: [TagInputComponent] // Add to directives
template: `<tag-input></tag-input>`
})API
Inputs
ngModel:string[]- Required Property to store the resulting tag list in.placeholder:string- Default:'Add a tag'- Placeholder for the<input>tag.delimiterCode:string- Default:'188'- ASCII keycode to split tags on. Defaults to comma.addOnBlur:boolean- Default:true- Whether to attempt to add a tag when the input loses focus.addOnEnter:boolean- Default:true- Whether to attempt to add a tag when the user presses enter.addOnPaste:boolean- Default:true- Whether to attempt to add a tags when the user pastes their clipboard contents.allowedTagsPattern:RegExp- Default:/.+/- RegExp that must match for a tag to be added.
0.0.20
10 years ago
0.0.19
10 years ago
0.0.18
10 years ago
0.0.17
10 years ago
0.0.16
10 years ago
0.0.15
10 years ago
0.0.14
10 years ago
0.0.13
10 years ago
0.0.12
10 years ago
0.0.11
10 years ago
0.0.10
10 years ago
0.0.9
10 years ago
0.0.8
10 years ago
0.0.7
10 years ago
0.0.6
10 years ago
0.0.5
10 years ago
0.0.4
10 years ago
0.0.3
10 years ago
0.0.2
10 years ago
0.0.1
10 years ago