Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Can't call plugin methods or maybe just documentation issue #6
Perfect code, excellent documentation & cool examples...
var textext = $('#keywords').textext(); var item = textext.itemManager().stringToItem('cool');
However, when I tried to call something like:
var textext = $('#keywords').textext(); var item = textext.tags().addTags(['hello','shit']);
It just fails....
The same happens with:
var textext = $('#keywords').textext(); var item = textext.TextExtTags.addTags(['hello','shit']);
I.e. seems can't found any "easy" way to call dirrectly plugin methods??? Strange.. because I think every such library should have at least methods which are easy accessible and documented well, like $('#keywords').textext().addTags('hello','shit') or var tags = $('#keywords').textext().getTags() etc.
Am I miss something?
Any news? Because right now it just drive me crazy :D To get tags that was entered, I issue following undocumented code (founded reviewing SOURCE HTML of the following page http://textextjs.com/manual/examples/tags.html ...):
Side note: if you select order of plugins for example like "plugins: 'prompt focus autocomplete arrow tags'" than yes, feature works. However if you use order like 'tags prompt focus autocomplete arrow' new feature do NOT work for some reason :) Spend few minutes today to figure out this :D Seems you may need to fix it in next version ;-)
I used this to add any text remaining in the input as a tag upon form submission (something I think is expected behavior for tag inputs, by the way).
I can confirm evereq's issues as well: the feature will expect 'tags' to be the last plugin specified in the options parameters. Otherwise, it will select whichever plugin is last instead.