angular-material-data-table
Advanced tools
Changelog
Version 0.10.0
Breaking Changes
Multiple selection must now be enabled with the multiple
attribute.
<table md-table md-row-select multiple ng-model="selected">
Unique identifiers must now be a property of the item.
<!-- use item.id as the unique identifier -->
<tr md-row md-select="item" md-select-id="id" md-auto-select ng-repeat="item in items">
Some folks do not want the pagination limit options to be enabled. To compensate, the pagination limit options must now be enabled with the mdLimitOptions
attribute. The mdLimitOptions
attribute is a replacement of the mdOptions
attribute and the default limit options have been removed.
<md-table-pagination md-limit-options="[5, 10, 15]">
New Features
Single item selection is now possible and enabled by default. Be aware that the ngModel
attribute must still be an array; for now.
The pagination limit options are now disabled be default.
The pagination page selector is now virtualized to improve performance.
Bug Fixes & Improvements
Preselected items will now be displayed by the UI. Keep in mind that if preselected items are not strictly equal to items in the table you will need to use the mdSelectId
attribute.
Changes to the pagination label will now take effect without needing to reload the page.
Pagination and reorder callbacks are now deferred until the next digest cycle using Angular Material's $mdUtil.nextTick
function to allow 2-way data binding to complete and to avoid confusion. This means your local scope variables will have the same value as the parameters passed to the md-on-reorder
and md-on-paginate
callbacks.