ui-select2
ui-select2 copied to clipboard
Declarative formatting
Allows declarative, inline markup to be used as select2 formatting functions.
<ui-select2 options="{allowClear:true,multiple:true,query:fuzzyMatchQuery}" ng-model="bestIslands">
<format-result>
<img src="pirate_flag.png" />{{ text }}
</format-result>
</ui-select2>
The specs cover all the functionality added, and the demo page has been updated with interactive examples.
@duncanbeevers thanks for this work. I want to get an font-awesome icon in the data-placeholder but I could not get any of the formatters to work. Does this code still work? I see there has not been much change in ui-select2 lately...
@enkodellc I haven't picked this up in a while, and eventually switched to the pure-angular angular-ui/ui-select where I had a lot more control over how the markup was generated.