Releases: esvit/ng-table
v4.0.0
<a name"4.0.0">
4.0.0 (2016-12-31)
Bug Fixes
- ngTableParams:
parametersmethod returns incorrect object (3ca6852d)
Features
- NgTableParams: nested paramater values never undefined (8f5461fc)
- ngTableFilterConfig: nested options never undefined (09664284)
- ngTableSettings: nested options never undefined (6e810ba6)
Breaking Changes
NgTableParams.parameters: any param value supplied as undefined will now be ignored
Instead of undefined you will need to supply a suitable value as described below:
count,page-0filter,group,sorting- an empty object to remove existing values
(8f5461f)
NgTableFilterConfigProvider.setConfig: any config value supplied as undefined will now be ignored
Instead of undefined you will need to supply a suitable value as described below:
aliasUrls- an empty object to reset configuration back to using filter templates supplied by the ng-table library
(0966428)
- Split
TableInputAttributesinterface into base and specialized interfaces
(29659a9)
- Drop the
Iprefix from interface names
(2e5bf71)
ISettings: replaced withSettingsclass and a type alias ofSettingsPartialSettings.interceptors,Settings.counts: arrays are cloned therefore any changes to the array will not be recognisedsettings(newSettings): any setting value supplied as undefined will now be ignored.
Instead of a undefined you will need to supply a suitable value as described below:
counts- an empty array to prevent the page size buttons renderingfilterOptions.filterDelay-0to remove the debounce delayfilterOptions.filterDelayThreshold-nullso that adatasetof any size will have afilterDelayappliedgroupOptions.sortDirection-''so that grouped columns are NOT sorted by defaultgroupOptions.isExpanded-falseso that each grouped set of rows are collapsed by defaultpaginationMaxBlocks,paginationMinBlocks-0
(6e810ba)
v3.1.0
v3.0.1
v3.0.0
<a name"3.0.0">
3.0.0 (2016-12-06)
Bug Fixes
- ngTableColumn: setting column attribute fails (e532a4f4)
- ngTableColumnsBinding: cannot be used with ngTableDynamic directive (76c7396c)
- ngTableEventsChannel: event callbacks defines incorrect params (b7a2aa62)
Breaking Changes
- services and controllers now implemented using classes
This will only affect applications written in typescript
- renamed exported angular module:
ngTable->ngTableModule
Previously:
import { ngTable } from 'ng-table';Now:
import { ngTableModule } from 'ng-table';ng-table/browserswitched to using a named export for it's angular module
Previously:
import ngTableBrowserModule from 'ng-table/browser';Now:
import { ngTableBrowserModule } from 'ng-table/browser';ng-table/coreswitched to using a named export for it's angular module
Previously:
import ngTableCoreModule from 'ng-table/core';Now:
import { ngTableCoreModule } from 'ng-table/core';ngTableFilterRowControllerswitched to usecontrollerAs
Practically this will only effect applications that:
- have a custom directive that uses
ngTableFilterRowControlleras it's controller - or have replaced the
ngTable/filterRow.htmltemplate stored in the$templateCache
To upgrade, these applications will need to change their template to reference the controller
methods exposed on the $ctrl scope variable.
ngTableGroupRowControllerswitched to usecontrollerAs
Practically this will only effect applications that:
- have a custom directive that uses
ngTableGroupRowControlleras it's controller - or have replaced the
ngTable/groupRow.htmltemplate stored in the$templateCache
To upgrade, these applications will need to change their template to reference the controller
methods exposed on the $ctrl scope variable.
ngTableSorterRowControllerswitched to usecontrollerAs
Practically this will only effect applications that:
- have a custom directive that uses
ngTableSorterRowControlleras it's controller - or have replaced the
ngTable/sorterRow.htmltemplate stored in the$templateCache
To upgrade, these applications will need to change their template to reference the controller
methods exposed on the $ctrl scope variable.
- changed signatures of
afterDataSorted+afterDataFilteredevents
Previously:
(publisher: IDefaultGetData<T>, params: NgTableParams<T>, newData: DataResult<T>[] ): anyNow:
(publisher: NgTableParams<T>, newData: DataResult<T>[] ): any(b7a2aa62)
v2.2.0
v2.1.0
v2.0.2
v2.0.1
v2.0.0
<a name"2.0.0">
2.0.0 (2016-10-05)
Features
- ng-table.js: support the CommonJS module format (7261ff45)
Breaking Changes
filter-dataattribute no longer supports returning a$defer'ed
Previously you could supply to the filter-data attribute a $defer'ed object.
Now, any asynchronous result must be supplied as a promise
(380c2d2e)
- The AMD (RequireJS) module returned by ng-table.js is now an object that references
the angular module.
Previously, the module returned was the angular module.
Note: this will only affect apps that are using RequireJS to load ng-table.js.
Those apps that are loading ng-table.js as a script tag will be unaffected.
- Replaced LESS with SASS
This will only affect the minority of apps that are using the ng-table.less file in the
dist folder.
Those apps that are using the ng-table.css will be unaffected.
(7261ff45)
1.0.0
Breaking Changes
- ngTableParams: due to 9b81066a,
ngTableAfterReloadData $scopeevent removed
Eventing no longer makes direct calls to $scope.$emit. Instead a strongly typed pub/sub service
(ngTableEventsChannel) is used.
To migrate
Previously:
$scope.$on('ngTableAfterReloadData', yourHandler)Now:
ngTableEventsChannel.onAfterReloadData(yourHandler, $scope)$scoperemoved fromNgTableParams
Because of 1. above, NgTableParams no longer requires a reference to $scope.
A reference to $scope was largely an internal requirement so there should be no code change
required on your part.
getDatasignature change
The $defer paramater supplied to your getData method has been removed. Instead your
getData method should return an array or a promise that resolves to an array.
To migrate
Previously:
var tp = new NgTableParams({}, { getData: getData });
function getData($defer, params){
// snip
$defer.resolve(yourDataArray);
}Now:
var tp = new NgTableParams({}, { getData: getData });
function getData(params){
// snip
return yourDataArrayOrPromise;
}ngTableParamsrenamed toNgTableParams
To migrate
Previously:
var tp = new ngTableParams();Now:
var tp = new NgTableParams();