ivaynberg/select2 — pull request #184 by tfiwm (2012-07-03 14:56:48+00:00)
Title: More flexible look & feel for the tag mode

I implemented a more flexible way for the tagging style ( select2-choice )

there is now an option

formatSelectionTemplate which is a string (html).
In this string must be the placeholder for the formatSelection and the class for the delete event.

placeholder string is "{formatSelection}"
event class is "select2-search-choice-close"

e.g.:

I can feel free with customizing
{formatSelection}

A lot of other stuff

I improved the formatSelection function too.
You can return in this function now html or an jQuery object.

I hope you like this idea.
For me it was necassary to have my own tagging style

Best regards
TfIwM