isteven / angular-multi-select

A multi select dropdown directive for AngularJS. Allows you to use HTML tags and CSS in the data. Requires only AngularJS and nothing else.
isteven.github.io/angular-multi-select
MIT License
1.08k stars 518 forks source link

Added no-labels-label attribute support #434

Open maxidirienzo opened 8 years ago

maxidirienzo commented 8 years ago

When using max-labels="0" this PR supports an additional attribute named "no-labels-label" to specify a label to be displayed before the selected items count, example:

<div isteven-multi-select.... max-labels="0" no-labels-label="some label here" ...>

if 3 items are selected, the button will show: "some label here (3)"

manevant commented 8 years ago

+1. Found that Total label (Total: '+$scope.selectedItems.length+') is hardcoded.