Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Conversation

duncanbeevers
Copy link

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.

@sroe sroe mentioned this pull request Mar 5, 2014
@enkodellc
Copy link

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

@duncanbeevers
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants