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

Equivalent to select2 formatSelectionCssClass

Open triforce opened this issue 11 years ago • 5 comments

In angular-ui-select2 you could change the styling of the selected items (tagging mode) using select2Options as follows:

$scope.select2Options = { formatSelectionCssClass: function (item, container) { $(container).parent().css({ "background-color": "#000000", "color": "FFFFFF" }); }); }

I am using this to add custom colors to each tag a user selects. Each tag is a custom object that contains a 'color' property.

Is there an equivalent in angular-ui-select? If not is there a plan to add this feature in?

Many thanks.

triforce avatar Aug 25 '15 08:08 triforce

+1

faisalferoz avatar Oct 10 '15 16:10 faisalferoz

+1

triforce avatar Dec 03 '15 16:12 triforce

+1

jacobmumm avatar Feb 10 '16 16:02 jacobmumm

+1

marincode11 avatar Feb 12 '16 13:02 marincode11

You can customise match-multiple.tpl.html and/or the contents or using usual angular directive to achieve this.

For reference:

Closing as the existing solution is adequate.

user378230 avatar Mar 17 '16 13:03 user378230