tokenfield
tokenfield copied to clipboard
Install and Setup
It would be nice to get install & setup instructions added to the readme. It was be nice to know which files from the repo I need to add to my asset pipeline.
To add on to this, which files do I need to add? I'm not too sure, as I'm rather junior with Javascript. Thanks
If you're using node.js to compile your JS assets - then all you need to do is just use
import Tokenfield from 'tokenfield';
// And use it:
const tf = new Tokenfield({
el: document.querySelector('.my-input');
});
If you just want to use library in a browser without any compiling you can include file tokenfield/dist/tokenfield.min.js on your webpage.