Skip to main content
Version: Next

createFlexLayoutModel

Callable

  • createFlexLayoutModel(dockedConfig: any): IJsonModel

  • Converts the app's abstract layout config (rows/columns/stacks/components) into a FlexLayout IJsonModel that can be passed to Model.fromJson().

    The abstract config uses GL-style terminology:

    • type: "row" | "column" | "stack" | "component"
    • content: children array
    • width/height: percentage weights

    FlexLayout terminology:

    • "row" node with children (IJsonRowNode)
    • "tabset" node with tab children (IJsonTabSetNode)
    • "tab" leaf node (IJsonTabNode)
    • weight: relative sizing (defaults to 100)

    Parameters

    • dockedConfig: any

    Returns IJsonModel