Hacker News new | ask | show | jobs
by mrgreenfur 5271 days ago
I think it's a great idea! I'd love to use it! Some ideas:

- Clicking on a selection didn't make it look like a tag (blue box) - Once you have more than 4 blue tags in the field, additional ones don't get added or aren't visible. It's probably best to add another line of height to see them all. Or to avoid the problem entirely, take the resolved 'tags' out of the input box and put them below. Perhaps by accepting a jQuery selector for where they should be dropped? - It would be nice if the 'prompt' option also read from the html5 placeholder attribute - tag items that are set should probably be settable via the option value not the display text, or maybe both? - An option to remove the blue arrow: if you have thousands of items in the list you don't want to display them all.

1 comments

Thanks for feedback

> Clicking on a selection didn't make it look like a tag (blue box)

This will be fixed in the next patch release

> Once you have more than 4 blue tags in the field, additional ones don't get added or aren't visible.

I'm able to ad any number of tags and the input expands vertically to accomodate. What browser/os are you on?

> It would be nice if the 'prompt' option also read from the html5 placeholder attribute

Good idea, will add it to the queue!

> tag items that are set should probably be settable via the option value not the display text, or maybe both?

Not sure what you mean.

> An option to remove the blue arrow

Blue arrow comes from the Array plugin, omitting which will result in the missing arrow.

I see the input expand vertically now, cool! Looks like duplicates are allowed, which probably shouldn't.

On the tag items I meant that in your demo code you have: tagsItems : [ 'jquery', 'plugin', 'tags', 'autocomplete' ],

Which is a listing of the items to include by their visible text. My suggestion is to use an ID instead (if they're objects). I ran $('input#textarea').val() on your demo and didn't get any value, how do you get the value out of the input box?