Skip to content

Layout

Reference

The layout option provides the ability to control the items that surround and control the DataTable. While offering a wide range of options to control the layout around the table, the basic operation of this option is quite simple: use the object parameter name to place a control and then the value to state what feature should be shown, and its configuration.

.Layout(x => x
    .Set("bottomEnd", "paging")
    .Set("bottomStart", null)
    .Top("info", "div"))

Set

Set a new position for feature.

.Set("bottomEnd", "paging")
Or, disable a feature.
.Set("bottomStart", null)

Top

Positions elements above the table but centers them horizontally. This layout places the controls centered at the top of the table.

.Top("pageLength", "search")

Bottom

Positions elements above the table but centers them horizontally. This layout places the controls centered at the bottom of the table.

.Bottom("info", "paging")