@@ -46,6 +46,7 @@ angular.module( 'isteven-multi-select', ['ng'] ).directive( 'istevenMultiSelect'
4646
4747 // settings based on attribute
4848 isDisabled : '=' ,
49+ tabindexglob : '=' ,
4950
5051 // callbacks
5152 onClear : '&' ,
@@ -895,6 +896,7 @@ angular.module( 'isteven-multi-select', ['ng'] ).directive( 'istevenMultiSelect'
895896 $scope . groupProperty = attrs . groupProperty ;
896897 $scope . tickProperty = attrs . tickProperty ;
897898 $scope . directiveId = attrs . directiveId ;
899+ $scope . tabIndexGlob = attrs . tabindexglob ;
898900
899901 // Unfortunately I need to add these grouping properties into the input model
900902 var tempStr = genRandomString ( 5 ) ;
@@ -966,8 +968,8 @@ angular.module( 'isteven-multi-select', ['ng'] ).directive( 'istevenMultiSelect'
966968 $scope . icon . tickMark = $sce . trustAsHtml ( $scope . icon . tickMark ) ;
967969
968970 // min length of keyword to trigger the filter function
969- if ( typeof attrs . MinSearchLength !== 'undefined' && parseInt ( attrs . MinSearchLength ) > 0 ) {
970- vMinSearchLength = Math . floor ( parseInt ( attrs . MinSearchLength ) ) ;
971+ if ( typeof attrs . minSearchLength !== 'undefined' && parseInt ( attrs . minSearchLength ) > 0 ) {
972+ vMinSearchLength = Math . floor ( parseInt ( attrs . minSearchLength ) ) ;
971973 }
972974
973975 /*******************************************************
@@ -1035,6 +1037,7 @@ angular.module( 'isteven-multi-select', ['ng'] ).directive( 'istevenMultiSelect'
10351037 'ng-click="toggleCheckboxes( $event ); refreshSelectedItems(); refreshButton(); prepareGrouping; prepareIndex();"' +
10361038 'ng-bind-html="varButtonLabel"' +
10371039 'ng-disabled="disable-button"' +
1040+ 'tabindex="{{tabIndexGlob}}"' +
10381041 '>' +
10391042 '</button>' +
10401043 // overlay layer
0 commit comments