ponysmith.github.io

tabletrimControls

Customizing Controls

As part of the options object, you can customize the controls that will be available in the trimmed table state. There are five valid controls that can be specified in the options object:

The controls will be rendered from left to right in the order that they are listed in the options. So, for example, if you want to show the previous and next buttons with the title between them, your options would be: controls: ['prev','title','next']
Username First Name Last Name Email
superman Clark Kent man.of.steel@gmail.com
batman Bruce Wayne dark.knight@gmail.com
wonderwoman Diana Prince my.invisible.jet@gmail.com
professorx Charles Xavier professor.x@gmail.com
hulk Bruce Banner green.machine@gmail.com
wolverine Logan ? weapon.x@gmail.com
1
2
3
4
5
// Instantiate tabletrim with an ondeactivate() callback
var opts = {
    controls: ['prev','title','next']
}
tabletrim($('#tabletrim-example'), opts);