Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

v0.3.1

Compare
Choose a tag to compare
@l-lin l-lin released this 10 Jan 12:13
· 504 commits to master since this release

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'
            }
        }
    });
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.
<table datatable dt-options="showCase.dtOptions" 
    dt-columns="showCase.dtColumns" 
    dt-disable-deep-watchers="true" 
    class="row-border hover">
</table>
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