jquery-tokeninput
jquery-tokeninput copied to clipboard
Added ability to enter custom tokens
This feature allows you to add value in manual mode. For example: We need to send the message (or invited) to multiple email addresses. In our database we store users, who have email. With standard functionality jQuery Tokeninput, we can choose only the addresses of our users like in sample. But what if we want to add any address to receive the message? By using the alowedNewItems parameter in settings, we can resolve this problem. After set this parameter to true, just simply typing a new email that will be added to the list.
SWEEEEEEEEEEET
Not sure how to add to a pull request, but I've added token validation onto this so that all tokens added are passed through an optional validation callback before being added. If they don't pass the validation, they aren't added an an error is shown in the dropdown
@pastylegs did you create a fork and put your changes in the fork?
sorry, I meant a pull request of a pull request if you know what I mean? I presume just clone @DKarp 's fork and work from there?
@pastylegs yeah, that's would work best... then @DKarp repo would have his changes plus yours if he merges your pull request.
@pastylegs where I can see your changes with validation?
@DKarp and @taf2 : I just forked and added the changes here: https://github.com/timmyomahony/jquery-tokeninput/commit/22ba73cd7aad1619f157e5fdba0faa411338a948
Interesting solution. I hope one of the proposed solution will get merged soon.
I add a fix in this "pull" to force the addition of new items if "clicked" out. How can I send it to know it integrate in your fix?
+1