captureLayout

Captures how the table is arranged right now: widths, hidden columns, order, sort, and filters.

Reads what is displayed, so it captures a sort or a filter the caller controls just as well as one the table owns. Save the result with DataTableLayout.encodeToString, or map it onto a type of your own.