jquery-tokeninput icon indicating copy to clipboard operation
jquery-tokeninput copied to clipboard

Ability to disable deletes on certain items, use webservice as json source and a minor layout adjustment option..

Open Geminior opened this issue 13 years ago • 3 comments

  • Added the ability to disable deletes on certain items. Json must include a disableDelete boolean property. The actual property name can be set through the disableDeleteProperty setting.
  • Added support for webservices. Set isWebService to true if you want to retrieve your json from a web service.
  • Added a dropDownWidthAdjustment setting, since the dropdown may be off by a few pixels in some layouts.

Geminior avatar Jan 30 '12 21:01 Geminior

+1. I use this code and would have to re-patch on new releases of jQuery Token Input.

Use case: The token field is excellent as a multi-select element, but also displays multiple items nicely too. I appreciate being able to have forms that look more or less the same whether they're in "edit mode" or "view mode", and I think the users appreciate this too.

cthielen avatar Jan 30 '12 21:01 cthielen

I might take a look at this if you resubmit the pull request without all the whitespace changed. Thanks

loopj avatar Jan 31 '12 03:01 loopj

I have no idea why VS takes it upon itself to change all whitespace, in any case I have made a new commit which should in fact show the actual changes.

Geminior avatar Jan 31 '12 13:01 Geminior