Future Proofing
- Merge #517 from @christophercr to change the restriction on the
mdTableProgress
directive from class name to attribute to support newer versions of AngularJS.
Bug Fix
- Removing one time binding from pagination limit options.
New Feature
-
You can now map language to limit options using the
label
andvalue
properties, e.g.ctrl.limitOptions = [5, 10, 15, { label: 'All', value: function () { return collection.length; } }];
Bug Fixes
- Fix bug where pagination page number would disappear.
Bug Fixes
- Fixing bug where changing the
orderBy
property of a column would add an additional sort icon.
Bug Fixes
- Fixing bug in pagination directive where the number of pages was always equal to the number of rows in the table.
Improvements
- Pagination is now usable on mobile.
- More safeguards in pagination directive against performing calculations on
NaN
.
Bug Fixes
- Fixing issue where errors would be thrown if row selection was not enabled.
Bug Fixes
- The pagination directive will now display
0 - 0 of 0
if the total is zero.
Bug Fixes
- Fixes bug where the select all checkbox would not be added to subsequent tables.
New Features
- Pagination elements may now be disabled with the
ng-disabled
attribute.
Bug Fixes & Improvements
- When the total changes, the pagination directive will check if the current page is greater than the total number of pages. If it is greater, the page will be set to the last available page.
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. ThemdLimitOptions
attribute is a replacement of themdOptions
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 themd-on-reorder
andmd-on-paginate
callbacks.