tokenfield icon indicating copy to clipboard operation
tokenfield copied to clipboard

Install and Setup

Open joshm1204 opened this issue 7 years ago • 2 comments

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.

joshm1204 avatar Mar 15 '19 02:03 joshm1204

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

geraldckj avatar Sep 03 '20 03:09 geraldckj

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.

KaneCohen avatar Sep 03 '20 09:09 KaneCohen