ui-select2 icon indicating copy to clipboard operation
ui-select2 copied to clipboard

Declarative formatting

Open duncanbeevers opened this issue 12 years ago • 2 comments

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 avatar Feb 22 '14 19:02 duncanbeevers

@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 avatar Jul 09 '14 07:07 enkodellc

@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.

duncanbeevers avatar Jul 09 '14 08:07 duncanbeevers