Merge pull request #374 from joefiorini/2.3--multiSelectCheckboxScripting

Easier selection of multi select list checkboxes for testing/scripting
This commit is contained in:
Joe Fiorini 2015-08-13 11:17:25 -04:00
commit d3c82a0fd1
2 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,8 @@
type="checkbox"
ng-disabled="itemsLength === 0"
ng-model="isSelected"
ng-change="doSelectAll()">
ng-change="doSelectAll()"
data-multi-select-select-all>
{{label}}
</label>
<button

View File

@ -30,7 +30,7 @@ export default
item: '=item'
},
require: '^multiSelectList',
template: '<input type="checkbox" ng-model="isSelected">',
template: '<input type="checkbox" data-multi-select-list-item ng-model="isSelected">',
link: function(scope, element, attrs, multiSelectList) {
scope.isSelected = false;