{hero}

fixedColumns().relayout()

Since: FixedColumns 3.1.0

Redraw the fixed columns based on new table size.
Please note - this property requires the FixedColumns extension for DataTables.

Description

If a table's position on the page is altered or its visibility is changed (for example it is created while hidden in a tab) then the fixed columns will need to be updated to match the table's new sizing. This method provides that ability.

Note that this method will automatically call fixedColumns().update(). You are not required to call these methods separately.

Type

function fixedColumns().relayout()

Description:

Recalculate the fixed columns sizes and positions, redrawing them on pages based on the latest DataTable data and position.

Returns:

DataTables API instance

Example

Recalculate the layout for all visible tables on a page:

$.fn.dataTable
	.tables( { visible: true, api: true } )
	.columns.adjust()
	.fixedColumns().relayout();