From c67850b5aecb6fcbf7eef3a8d2f781f691d19e98 Mon Sep 17 00:00:00 2001 From: GLaw Date: Fri, 16 Jun 2017 13:39:17 +0200 Subject: [PATCH] Update angular-selectbox.js Added an option to hide the length of selected items in multi-select. --- src/angular-selectbox.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/angular-selectbox.js b/src/angular-selectbox.js index fbbb87f..932a52f 100644 --- a/src/angular-selectbox.js +++ b/src/angular-selectbox.js @@ -47,7 +47,7 @@ ' class="sb-toggle" ' + ' ng-click="vm.toggle()" ' + ' ng-class="{\'sb-toggle-active\': vm.active}">' + - ' {{ vm.title }}{{ vm.values.length ? (\': \' + vm.values.length) : vm.title }}' + + ' {{ vm.title }}{{ vm.displayLength ? (vm.values.length ? (\': \' + vm.values.length) : vm.title) : \'\' }}' + ' ' + '