Releases: rvighne/TagTrain
Releases · rvighne/TagTrain
0.2.0
- Many improvements to the default theme stylesheet
- Uses the parent element's font for the tag input
- Fixed an issue regarding text wrapping of the tags and input (#2)
- Tag input element now grows proportionally to the text entered (#1)
- Some browsers do not implement this perfectly (Firefox, Edge), so very long strings will still require a little scrolling
- New option:
maxTagLen
limits the maximum allowable tag size; off by default - New event:
reject-tag
is fired when a tag cannot be added for whatever reason (e.g. not matching the regular expression, too long, blank, duplicate, max tag count is already reached, etc.) - API improvement: Accessing the
tags
internal property is no longer encouragedgetTags
returns a copy of the tags arraychange
event no longer gets a reference to the tags array as an argument. See the above point. This is a breaking change!
0.1.0
- Big feature: this release introduces event handling! See Issue #3 for a description of the new API
- Tags are no longer stored as a sparse array. This has simplified both the internal code and the external interface (well... if there was an external interface... but the point is, now it is simple to use the
tags
property on theTagTrain
instance).