Releases: esvit/ng-table
1.0.0-alpha.7
Bug Fixes
- NgTableParams: the url method does not URI encoded all parameter values
(6e7bf3a7)
Features
- NgTableParams: improved support for grouping data
(1cd90cde) - groupRow: extend header with a data group picker
(ffa617cb) - ngTableDefaultGetData: allow NgTableParams to determine if sorting, filtering, and paging apply
(6536d734)
Breaking Changes
- NgTableParams:
- due to 1cd90cde,
settings().groupBy
renamed and moved toparameters().group
Previously:
var params = new NgTableParams({...}, { groupBy: 'role'});
// changing value:
params.settings({ groupBy: 'age'});
Now:
var params = new NgTableParams({group: 'role'}, {...});
// changing value:
params.group('age');
// OR
params.parameters({ group: { age: undefined }});
- paging is applied after grouping
This means that groups will no longer be duplicated and split across pages.
- due to 6e7bf3a7,
All parameter values are now URI encoded, thus a numerical filter value will now be returned as a quoted string
1.0.0-alpha.6
1.0.0-alpha.5
1.0.0-alpha.4
Features
- filters: add ngTableSelectFilterDs directive
(c79fdd86)
Breaking Changes
- filters: due to 6e1bd3d9,
ngTableController
no longer adds an empty item to the array returned by $column.filterData
.
This will only affect those apps that were using $column.filterData
to supply data to a custom
filter template.
Those apps that are using the select.html
will be unaffected as the select.html
filter will add
this empty item.
v1.0.0-alpha.3
Bug Fixes
- ngTableController: should be consistent about adding empty option item
(d2080600)
Features
- filters:
Breaking Changes
- ngTableController: due to d2080600,
An empty item - { id: '', title: '' }
- is added to an array returned synchronously by filterData
function.
Implications:
- make sure to not add an empty option yourself as this will be a duplicate
- your array of items need to have an
id
andtitle
field so as to match the empty option
v1.0.0-alpha.2
v1.0.0-alpha.1
v1.0.0-alpha
Bug Fixes
- NgTableParams: default page size is unreasonably small
(6aec41ca)
Breaking Changes
- NgTableParams:
- due to 6aec41ca,
Default page size has been increased from 1 to 10.
To override this behaviour set the default page size in the a run block:
angular.module("yourApp").run(setRunPhaseDefaults);
setRunPhaseDefaults.$inject = ["ngTableDefaults"];
function setRunPhaseDefaults(ngTableDefaults) {
ngTableDefaults.params.count = 1;
}
- due to 6b747850,
NgTableParams
no longer exposes a getGroups
method.
getGroups
is now a method on the settings object only.
- due to 1ed1a044,
NgTableParams
no longer exposes a getData
method
- settings: due to e29babf2,
The column
parameter of the getGroups
method has been removed.
Instead the groupBy
value on the NgTableParams.settings()
object supplied as a parameter will
be used to determine the grouping.
Previously:
var groupsFetched = tableParams.settings().getGroups('age');
Now:
tableParams.settings({ groupBy: 'age'});
var groupsFetched = tableParams.settings().getGroups(tableParams);