Update the node tree by performing the given action, Actions should be generated via static methods on the Actions class
the action to perform
added Node for Actions.addTab, layoutId for createPopout
Get the currently active tabset node
Gets the
Finds the first/top left tab set of the given node.
The top node you want to begin searching from, deafults to the root node
The first Tab Set
Get the currently maximized tabset node
Gets the root RowNode of the model
set callback called when a new TabSet is created. The tabNode can be undefined if it's the auto created first tabset in the root row (when the last tab is deleted, the root tabset can be recreated)
Optionalsize: numberVisits all the nodes in the model and calls the given function for each
a function that takes visited node and a integer level as parameters
StaticfromLoads the model from the given json object.
Note: the recommended way to change an existing layout is to mutate the current model via
actions (model.doAction(...)), which updates the layout incrementally and preserves view
state.
the json model to load
OptionalpreviousModel: Model
optional model currently in use by the layout; when given, tabs with matching ids adopt the previous model's view state (mounted tab contents, scroll positions), so the layout updates in place without remounting the tab contents. Use when replacing an existing layout's model with a modified copy of its json.
a new Model object
Staticto
Class containing the Tree of Nodes used by the FlexLayout component