How can I use single item selection with md-on-select in Material Design Data Table for Angular Material and have checkboxes hidden? I think when we can select one item, checkboxes are no more needed and I want to hide them.
Single item selection achieved by selected item swap:
in row usage:
<tr md-row md-select="item" md-on-select="onSelect" ng-repeat="item in items"></tr>
onSelect method:
$scope.onSelect = function (item, key) {
if($scope.selected.length >= 2) {
$scope.selected.shift();
}
}
When i use md-row-select="false" i lose ability to select single row.
How can I hide checkboxes and still select single row?
