Skip to content
forked from jcubic/tagger

Vanilla JavaScript tag editor

Notifications You must be signed in to change notification settings

bulldy80/tagger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  _____
 |_   _|___ ___ ___ ___ ___
   | | | .'| . | . | -_|  _|
   |_| |__,|_  |_  |___|_|
           |___|___|   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

About

Vanilla JavaScript tag editor

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 79.7%
  • CSS 11.4%
  • HTML 8.9%