angularjs - In angular datatable how to change show records per page options -


in jquery data table can change records per page option by

"alengthmenu": [[50, 100, 150, 200, -1], [50, 100, 150, 200, "all"]], 

anyone know how achieve in angular?

i tried

$scope.dtoptions = dtoptionsbuilder.newoptions().withoption('order', [1, 'asc']).withdisplaylength(250); 

and

$scope.dtoptions = dtoptionsbuilder.newoptions().withoption('order', [1, 'asc']).withoption('lengthmenu', [[50, 100, 150, 200, -1], [50, 100, 150, 200, "all"]]) 

i want show 50, 100, 150, 200

i searched @ http://l-lin.github.io/angular-datatables/#/api couldn't found

you close... use 'lengthmenu' option , 1 array:

$scope.dtoptions = dtoptionsbuilder.newoptions().withoption('order', [1, 'asc']).withoption('lengthmenu', [50, 100, 150, 200]) 

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -