Pillbox
Pillbox input component, a fork of tomerdmnt/tag-input.
Install
$ component install component/pillbox
Example
var Pillbox = require('pillbox');
var input = TagInput(document.getElementById('tags'))
input.on('add', function(tag){
console.log(tag + ' added');
});
input.on('remove', function(tag){
console.log(tag + ' removed');
});
Events
add
(tag)remove
(tag)
API
Pillbox#add(tag)
Add tag
string if it does not already exist.
Pillbox#remove(tag)
Remove tag
string if it exists.
Pillbox#values()
Return an array of the tags.
License
MIT