This repository was archived by the owner on Feb 2, 2025. It is now read-only.
v0.3.1
This release contains the following:
- Add the possibility to override the Bootstrap pagination container CSS classes #135
vm.dtOptions = DTOptionsBuilder
.fromSource('data.json')
// Add Bootstrap compatibility
.withBootstrap()
.withBootstrapOptions({
pagination: {
classes: {
ul: 'pagination pagination-sm'
}
}
});
- Integration with ColumnFilter plugin #94
vm.dtOptions = DTOptionsBuilder.fromSource('data.json')
.withPaginationType('full_numbers')
.withColumnFilter({
aoColumns: [{
type: 'number'
}, {
type: 'text',
bRegex: true,
bSmart: true
}, {
type: 'select',
values: ['Yoda', 'Titi', 'Kyle', 'Bar', 'Whateveryournameis']
}]
});
- Remove unecessary
$timeout
#146 - Improve Angular digest performance by allowing watching table definitions shallowly #144
- The
angular-datatables
uses deep search for changes on every$digest
cycle. Meaning every time any Angular event happens (ng-clicks, etc.), the entire array, each of it's children, it's children's children, and so forth gets compared to a cached copy. - There is an attribute to add so that if the directive has a truthy value for
dt-disable-deep-watchers
at compile time then it will use$watchCollection(...)
instead. This would allow users to prevent big datasets from thrashing Angular's$digest
cycle at their own discretion.
- The
<table datatable dt-options="showCase.dtOptions"
dt-columns="showCase.dtColumns"
dt-disable-deep-watchers="true"
class="row-border hover">
</table>
- Some updates on documentation
- Some refactoring to follow John Papa's Angular styleguide
- Integration with angular-translate #99
vm.dtColumns = [
DTColumnBuilder.newColumn('id', $translate('id')),
DTColumnBuilder.newColumn('firstName').withTitle($translate('firstName')),
DTColumnBuilder.newColumn('lastName').withTitle($translate('lastName'))
];
- Correction on Scroller plugin that no longer worked #147