Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.02 KB

README.md

File metadata and controls

46 lines (33 loc) · 1.02 KB
  _____
 |_   _|___ ___ ___ ___ ___
   | | | .'| . | . | -_|  _|
   |_| |__,|_  |_  |___|_|
           |___|___|   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[], 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
  • 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