Releases: snapappointments/ng-bootstrap-select
Releases · snapappointments/ng-bootstrap-select
v0.5.0
v0.4.0
v0.3.0
Improve bsOptionAttrs support. A JS function that returns an object can now be used.
<select ng-model="model"
ng-options="c.label for c in condiments track by c.color"
bs-option-attrs="customAttribute">
</select>
$scope.customAttribute = function(c) {
return {
'data-subtext': c.abbrv,
title: $scope.optionTitle(c.label)
}
}
$scope.optionTitle = function(label) {
return 'LABEL: ' + label;
}