summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--angular-multi-select.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/angular-multi-select.js b/angular-multi-select.js
index dd610f4..9153ab0 100644
--- a/angular-multi-select.js
+++ b/angular-multi-select.js
@@ -49,6 +49,7 @@ angular.module( 'multi-select', ['ng'] ).directive( 'multiSelect' , [ '$sce', '$
tickProperty : '@',
disableProperty : '@',
orientation : '@',
+ defaultLabel : '@',
maxLabels : '@',
isDisabled : '=',
directiveId : '@',
@@ -179,7 +180,7 @@ angular.module( 'multi-select', ['ng'] ).directive( 'multiSelect' , [ '$sce', '$
// Write label...
if ( $scope.selectedItems.length === 0 ) {
- $scope.varButtonLabel = 'None selected';
+ $scope.varButtonLabel = ($scope.defaultLabel)? $scope.defaultLabel : 'None selected';
}
else {
var tempMaxLabels = $scope.selectedItems.length;