Updating Layouts

Summary

  • The updateCurrentLayout function in Layout Api allows developers easily to update a Layout programatically

Updating a Layout programatically is one of the most frequent run-time actions.

For this reason, AdapTable provides the useful updateCurrentLayout function in Layout API.

It allows developers to pass in just the partial set of props that should be updated for the Current Layout (and the function returns the updated Layout object).

Note

This function is available for both Table Layouts and Pivot Layouts

updateCurrentLayout

updateFn
TableLayout | PivotLayout
Enable updating a partial set of properties in a Layout
Updating Layouts Programatically
Fork
  • This demo illustrates how to use updateCurrentLayout function
  • The Update Layout custom Dashboard button will, when clicked, change the Layout to show changes to grouping, aggregations, column visibility, widths and filters etc.
Try It Out
  • Switch to the Pivot Layout and update that one programatically also (by clicking the same Update Layout custom Dashboard button)