angular-multi-select
angular-multi-select copied to clipboard
Add option to show custom label on some options selected
There is need in option, like
'someSelectedLabel': 'Recipients selected'
that provides ability instead of showing every selected option in
.multiSelect > button
show only this label. Because in some cases users don't need to see all selected options, they need to know, that something is selected and this is enough.
None selected: http://prntscr.com/ajqxxw Some selected: http://prntscr.com/ajqyc5
-
add showSelectedText : '=', into scope
-
` $scope.$watch("showSelectedText" , function( newVal ) {
if( newVal ) { $scope.showSelectedText = newVal; } });`
-
add a judgement for refreshbutton:
else if (typeof $scope.showSelectedText !== 'undefined' && $scope.showSelectedText !== "") { //https://github.com/isteven/angular-multi-select/issues/424 $scope.varButtonLabel = $scope.showSelectedText; }
isteven-multi-select.zip
@pmomot ,
Sorry for the late reply;
Indeed there are some requests regarding custom text on the button. I'll see what I can do for the next release.