Hi,
I am wondering how to get the select all box working as by default, its marked and I can't even get it unchecked. Also the sorting/unsorting isn't working either. Now I am sure I need more code than what I have copied from the API doc but if anyone could guide me a bit here, that would be appreciated.
Here is my code:
html
<umb-table
ng-if="vm.items"
items="vm.items"
item-properties="vm.options.includeProperties"
allow-select-all="vm.allowSelectAll"
on-select="vm.onSelect"
on-click="vm.onClick"
on-select-all="vm.selectAll"
on-selected-all="vm.onSelectedAll"
on-sorting-direction="vm.onSortDirection"
on-sort="vm.onSort"
>
</umb-table>
js
vm.onSelect = onSelect;
vm.onClick = onClick;
vm.selectAll = selectAll;
vm.onSelectedAll = onSelectedAll;
vm.onSortDirection = onSortDirection;
vm.allowSelectAll = true;
vm.onSort = onSort;
function selectAll($event) {
alert('select all');
}
function onSelectedAll() {
return true;
}
function onClick(item) {
console.log('clicked', item);
alert('click node');
}
function onSelect(selectedItem, $index, $event) {
alert('select node');
}
function onSortDirection(col, direction) {}
function onSort(field, allow, isSystem) {}
https://cdn.discordapp.com/attachments/1194969651894026330/1194969652032454696/0.png?ex=65b24936&is=659fd436&hm=94008e1a22d39aaa6f174c0e44d1e42cb625daacaafafae0e336b475fc233165&