Ability to disable deletes on certain items, use webservice as json source and a minor layout adjustment option..
- 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.
+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.
I might take a look at this if you resubmit the pull request without all the whitespace changed. Thanks
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.