Is there a way to auto trigger the responsive behavior of angular datatable?
I found a way to manually trigger this by using with .withOption('responsive', true);
. But cant get it to auto trigger when user re-sizes the screen.
following is the code i'm using to manually trigger responsiveness.
$scope.dtOptions = DTOptionsBuilder.fromFnPromise(function () {
return rWarehouse.query().$promise;
}).withOption('responsive', false);
here are the columns
$scope.dtColumns = [
DTColumnBuilder.newColumn('organisation.name').withTitle('Organisation'),
DTColumnBuilder.newColumn('name').withTitle('Warehouse').withClass('none'),
DTColumnBuilder.newColumn('code').withTitle('Warehouse Code').withClass('none'),
];
BTW i'm using this http://l-lin.github.io/angular-datatables/#/welcome angular datatable.