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

Added ability to enter custom tokens

Open DKarp opened this issue 13 years ago • 10 comments

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.

DKarp avatar Jan 24 '12 17:01 DKarp

SWEEEEEEEEEEET

dmcqueeney avatar Feb 28 '12 20:02 dmcqueeney

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

timmyomahony avatar Mar 08 '12 15:03 timmyomahony

@pastylegs did you create a fork and put your changes in the fork?

taf2 avatar Mar 11 '12 23:03 taf2

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?

timmyomahony avatar Mar 14 '12 19:03 timmyomahony

@pastylegs yeah, that's would work best... then @DKarp repo would have his changes plus yours if he merges your pull request.

taf2 avatar Mar 16 '12 01:03 taf2

@pastylegs where I can see your changes with validation?

DKarp avatar Mar 16 '12 11:03 DKarp

@DKarp and @taf2 : I just forked and added the changes here: https://github.com/timmyomahony/jquery-tokeninput/commit/22ba73cd7aad1619f157e5fdba0faa411338a948

timmyomahony avatar Mar 16 '12 11:03 timmyomahony

Interesting solution. I hope one of the proposed solution will get merged soon.

micred avatar Jun 18 '12 16:06 micred

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?

myrandor avatar Aug 10 '12 13:08 myrandor

+1

erikringsmuth avatar Nov 18 '13 22:11 erikringsmuth