Skip to content
Vanilla JavaScript tag editor
JavaScript CSS HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
demo.html
package.json
tagger.css
tagger.js

README.md

  _____
 |_   _|___ ___ ___ ___ ___
   | | | .'| . | . | -_|  _|
   |_| |__,|_  |_  |___|_|
           |___|___|   version 0.2.0

Tagger - Vanilla JavaScript Tag Editor

npm

Usage:

tagger(document.querySelector('[name="tags"]'), {allow_spaces: false});

Demo

API

methods:

  • add_tag(string)
  • remove_tag(string)
  • complete(string)

Options

  • allow_duplicates (default fasle)
  • allow_spaces (default true)
  • completion object {list: string[] | function(): Promise(string[])|string[], delay: miliseconds, min_length: number}
  • link function(name): string|false it should return what should be in href attribute or false

Changelog

0.2.0

  • link option
  • working completion
  • allow to use querySelectorAll etc.

0.1.3

  • fix inialization in UMD

0.1.2

  • fix bug in adding tags

0.1.1

  • fix initalization of tags from input

0.1.0

  • inital version

License

Copyright (c) 2018-2019 Jakub T. Jankiewicz

Released under the MIT license

You can’t perform that action at this time.