Skip to content

Commit e329358

Browse files
author
isteven
committed
v2.0.0
2 parents 3bd2d53 + 93c81c2 commit e329358

File tree

2 files changed

+31
-5
lines changed

2 files changed

+31
-5
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ See changelog.md
1616

1717
Note
1818
--
19-
<br />If you have any problem, just open an issue in https://github.com/isteven/angular-multi-select.
20-
<br />Pardon the some incorrect HTML highlighting. Apparently highlight.js breaks when it sees on-open="function()" etc.
21-
<br />If you like / use this directive in your awesome projects, star this repo. It's a huge motivation for me. Thanks!
19+
If you have any problem, just open an issue in <a href="https://github.com/isteven/angular-multi-select">https://github.com/isteven/angular-multi-select</a>.<br />
20+
This directive is a practical solution, not a performance champion. It will not win any code efficiency competition.<br />
21+
Pardon some incorrect HTML highlighting in this document. Apparently highlight.js breaks when it sees on-open="function()" etc.<br />
22+
If you like / use this directive in your awesome projects, star this repo. It's a huge motivation for me. Would also love to hear from you if you use it in an open source project. Thanks!<br />
2223

2324
Licence
2425
--

angular-multi-select.js

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,25 @@ angular.module( 'multi-select', ['ng'] ).directive( 'multiSelect' , [ '$sce', '$
5959
// settings based on input model property
6060
tickProperty : '@',
6161
disableProperty : '@',
62+
<<<<<<< HEAD
6263
groupProperty : '@',
6364

6465
// callbacks
6566
onClose : '&',
6667
onItemClick : '&',
6768
onOpen : '&'
69+
=======
70+
orientation : '@',
71+
defaultLabel : '@',
72+
maxLabels : '@',
73+
isDisabled : '=',
74+
directiveId : '@',
75+
helperElements : '@',
76+
onOpen : '&',
77+
onClose : '&',
78+
onBlur : '&',
79+
onFocus : '&',
80+
>>>>>>> 93c81c29e84ff5859b4d4b294b04687f2198493e
6881
},
6982

7083
template:
@@ -439,10 +452,14 @@ angular.module( 'multi-select', ['ng'] ).directive( 'multiSelect' , [ '$sce', '$
439452

440453
// refresh button label...
441454
if ( $scope.selectedItems.length === 0 ) {
455+
<<<<<<< HEAD
442456
// https://github.com/isteven/angular-multi-select/pull/19
443457
$scope.varButtonLabel = ( typeof $scope.defaultLabel !== 'undefined' ) ? $scope.defaultLabel : 'None selected';
458+
=======
459+
$scope.varButtonLabel = ($scope.defaultLabel)? $scope.defaultLabel : 'None selected';
460+
>>>>>>> 93c81c29e84ff5859b4d4b294b04687f2198493e
444461
}
445-
else {
462+
else {
446463
var tempMaxLabels = $scope.selectedItems.length;
447464
if ( typeof $scope.maxLabels !== 'undefined' && $scope.maxLabels !== '' ) {
448465
tempMaxLabels = $scope.maxLabels;
@@ -463,14 +480,22 @@ angular.module( 'multi-select', ['ng'] ).directive( 'multiSelect' , [ '$sce', '$
463480
}
464481
ctr++;
465482
}
466-
});
483+
});
467484

468485
if ( $scope.more === true ) {
486+
<<<<<<< HEAD
469487
// https://github.com/isteven/angular-multi-select/pull/16
470488
if (tempMaxLabels > 0) {
471489
$scope.varButtonLabel += ', ... ';
472490
}
473491
$scope.varButtonLabel += '(Total: ' + $scope.selectedItems.length + ')';
492+
=======
493+
if (tempMaxLabels > 0) {
494+
$scope.varButtonLabel += ', ... ';
495+
}
496+
497+
$scope.varButtonLabel += '(Total: ' + $scope.selectedItems.length + ')';
498+
>>>>>>> 93c81c29e84ff5859b4d4b294b04687f2198493e
474499
}
475500
}
476501
$scope.varButtonLabel = $sce.trustAsHtml( $scope.varButtonLabel + '<span class="caret"></span>' );

0 commit comments

Comments
 (0)