From d0396aa135a2134f319133a35c45f11523666e94 Mon Sep 17 00:00:00 2001 From: Duskfall Date: Mon, 10 Aug 2015 11:17:15 +0300 Subject: [PATCH] Added option for changing the placeholder value Added option for changing the placeholder value dynamically for each instance --- src/multiselect-tpls.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/multiselect-tpls.js b/src/multiselect-tpls.js index 149de30..28c1136 100644 --- a/src/multiselect-tpls.js +++ b/src/multiselect-tpls.js @@ -47,6 +47,7 @@ angular.module('ui.multiselect', [ scope.header = 'Select'; scope.multiple = isMultiple; scope.disabled = false; + scope.placeholder = attrs.msPlaceholder || 'Filter'; originalScope.$on('$destroy', function () { scope.$destroy(); @@ -284,7 +285,7 @@ angular.module('multiselect.tpl.html', []) " \n" + "