0.0.10 • Published 8 years ago

ng2-tags v0.0.10

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

ng2-tags

Taggs for angular 2 apps.

module

import it

import {TagInputComponent} from 'ng2-tags/ng2-tags';

include it

....
 directives: [TagInputComponent]
....

use it in html

<tags placeholder="Expand Range" 
    [(ngModelArray)]="some_string_array" delimiterCode="188"   >
</tags>

rest of api

AttributeTyperequiredDescription
ngModelArraystring[]yesProperty to store the resulting tag list in
placeholderstringnoPlaceholder for the <input> tag
delimiterCodestringnoASCII keycode to split tags on. Defaults to comma
addOnBlurbooleannoWhether to attempt to add a tag when the input loses focus
addOnEnterbooleannoWhether to attempt to add a tag when the user presses enter.
addOnPastebooleannoWhether to attempt to add a tags when the user pastes their clipboard contents
allowedTagsPatternRegExpnoRegExp that must match for a tag to be added