TextboxList 0.3 and jQuery version out!

Moo TextboxList 0.3 changes:

  • HTML for bits not showing properly fixed
  • highlightSelector not working (due to a typo) fixed
  • GrowingInput missing pad function added (only affected if you customized growing.mini option)
  • Improved clicking the whole widget behavior
  • Other tiny enhancements / cleanup

Secondly, in the best interest of the JavaScript community, I’ve ported TextboxList to jQuery. The API changes slightly due to the different OOP approach, but all the functionality is intact. Head to jQuery TextboxList project page for more.

Update: 0.2 is out for jQuery. Bugs in autocompleter and IE have been addressed.

Displaying only a subset of the comments. Click here to display all comments.

  1. This script is spectacular! Extremely well done!

    I think a great addition would be an option to add a tag with a comma while using autocomplete. This would allow a user to input tags that may not be in the autocomplete list.

    Thanks again!

    • Guillermo Rauch about 1 year ago

      That’s already an option

    • I see that it can be done (which is awesome) but when autocomplete is activated it seems to bypass that bit option. This is the script I’m working with; I apologize if I am missing something obvious.

      var t4 = new TextboxList(‘form_tags_input’, {bitsOptions:{editable:{addKeys: 188}}, unique: true, plugins: {autocomplete: {}}});

      if I do something else in the bit options like hiding the delete button that will work but comma adding still will not:

      var t4 = new TextboxList(‘form_tags_input_3′, {bitsOptions: {box: {deleteButton: false}, editable:{addKeys: 188}}, unique: true, plugins: {autocomplete: {}}});

      Thanks!

    • Guillermo Rauch about 1 year ago

      Yes you’re right. Actually that’s what happens due to a limitation in the order events are fired which I can’t workaround. The only solution I can think of would be to repeat code. I’ll evaluate it more thoroughly soon.

    • Sorry if I’m not understanding this correctly but right now there is a way to get around the problem and get autocomplete + comma tags to work? Can you give an example?