Class Actions

The Action creator class for FlexLayout model actions

Hierarchy

  • Actions

Constructors

Properties

ADD_NODE: string = "FlexLayout_AddNode"
ADJUST_BORDER_SPLIT: string = "FlexLayout_AdjustBorderSplit"
ADJUST_SPLIT: string = "FlexLayout_AdjustSplit"
DELETE_TAB: string = "FlexLayout_DeleteTab"
DELETE_TABSET: string = "FlexLayout_DeleteTabset"
FLOAT_TAB: string = "FlexLayout_FloatTab"
MAXIMIZE_TOGGLE: string = "FlexLayout_MaximizeToggle"
MOVE_NODE: string = "FlexLayout_MoveNode"
RENAME_TAB: string = "FlexLayout_RenameTab"
SELECT_TAB: string = "FlexLayout_SelectTab"
SET_ACTIVE_TABSET: string = "FlexLayout_SetActiveTabset"
UNFLOAT_TAB: string = "FlexLayout_UnFloatTab"
UPDATE_MODEL_ATTRIBUTES: string = "FlexLayout_UpdateModelAttributes"
UPDATE_NODE_ATTRIBUTES: string = "FlexLayout_UpdateNodeAttributes"

Methods

  • Adds a tab node to the given tabset node

    Returns

    the action

    Parameters

    • json: any

      the json for the new tab node e.g {type:"tab", component:"table"}

    • toNodeId: string

      the new tab node will be added to the tabset with this node id

    • location: DockLocation

      the location where the new tab will be added, one of the DockLocation enum values.

    • index: number

      for docking to the center this value is the index of the tab, use -1 to add to the end.

    • Optional select: boolean

      (optional) whether to select the new tab, overriding autoSelectTab

    Returns Action

  • Parameters

    • nodeId: string
    • pos: number

    Returns Action

  • Adjust the splitter between two tabsets

    Example

    Actions.adjustSplit({node1: "1", weight1:30, pixelWidth1:300, node2: "2", weight2:70, pixelWidth2:700});
    

    Returns

    the action

    Parameters

    • splitSpec: {
          node1Id: string;
          node2Id: string;
          pixelWidth1: number;
          pixelWidth2: number;
          weight1: number;
          weight2: number;
      }

      an object the defines the new split between two tabsets, see example below.

      • node1Id: string
      • node2Id: string
      • pixelWidth1: number
      • pixelWidth2: number
      • weight1: number
      • weight2: number

    Returns Action

  • Deletes a tab node from the layout

    Returns

    the action

    Parameters

    • tabNodeId: string

    Returns Action

  • Deletes a tabset node and all it's child tab nodes from the layout

    Returns

    the action

    Parameters

    • tabsetNodeId: string

      the id of the tabset node to delete

    Returns Action

  • Parameters

    • nodeId: string

    Returns Action

  • Maximizes the given tabset

    Returns

    the action

    Parameters

    • tabsetNodeId: string

      the id of the tabset to maximize

    Returns Action

  • Moves a node (tab or tabset) from one location to another

    Returns

    the action

    Parameters

    • fromNodeId: string

      the id of the node to move

    • toNodeId: string

      the id of the node to receive the moved node

    • location: DockLocation

      the location where the moved node will be added, one of the DockLocation enum values.

    • index: number

      for docking to the center this value is the index of the tab, use -1 to add to the end.

    • Optional select: boolean

      (optional) whether to select the moved tab(s) in new tabset, overriding autoSelectTab

    Returns Action

  • Change the given nodes tab text

    Returns

    the action

    Parameters

    • tabNodeId: string

      the id of the node to rename

    • text: string

      the test of the tab

    Returns Action

  • Selects the given tab in its parent tabset

    Returns

    the action

    Parameters

    • tabNodeId: string

      the id of the node to set selected

    Returns Action

  • Set the given tabset node as the active tabset

    Returns

    the action

    Parameters

    • tabsetNodeId: undefined | string

      the id of the tabset node to set as active

    Returns Action

  • Parameters

    • nodeId: string

    Returns Action

  • Updates the global model jsone attributes

    Returns

    the action

    Parameters

    • attributes: any

      the json for the model attributes to update (merge into the existing attributes)

    Returns Action

  • Updates the given nodes json attributes

    Returns

    the action

    Parameters

    • nodeId: string

      the id of the node to update

    • attributes: any

      the json attributes to update (merge with the existing attributes)

    Returns Action

Generated using TypeDoc