Skip to content

1.0.0-beta.5

Pre-release
Pre-release
Compare
Choose a tag to compare
@christianacca christianacca released this 17 Sep 23:46
· 141 commits to master since this release

Bug Fixes

  • NgTableParams: afterCreated should be the very first event to fire
    (84d4220c)
  • filterRow.html: header-class should also apply to filter row
    (eed65436)
  • ngTableController: reference to $column not always available in $column getter functions
    (adddb27d)

Features

  • ngTableController: display the filter row by default when applicable
    (103b2be4)

Breaking Changes

The order of events firing has changed.

Previously the datasetChanged event would fire after the afterCreated event. Now afterCreated
event will fires first.

A css class specified using the header-class will now be added to the filter row header cell and not
just the sorting row.

If you want to continue to apply the css rules only to the cell in the sorting header row you
will now need to qualify your css rule with the '.header' css class.

So the following:

.my-customer-header {
    /* rules */
}

... will need to change to:

.header.my-customer-header {
    /* rules */
}

A context object combines and replaces the $scope and locals argument originally supplied to
$column getter functions.

This context object prototypically inherits from the original $scope and has the fields from the
original locals argument as own properties.

This change is very unlikely to affect you

ngTableColumn.buildColumn now expects a third parameter - a reference to the $columns
array that will contain the column being built