@aptre/flex-layout
    Preparing search index...

    Class Actions

    The Action creator class for FlexLayout model actions

    Index

    Constructors

    Properties

    ADD_NODE: "FlexLayout_AddNode" = ActionType.ADD_NODE
    ADJUST_BORDER_SPLIT: "FlexLayout_AdjustBorderSplit" = ActionType.ADJUST_BORDER_SPLIT
    ADJUST_WEIGHTS: "FlexLayout_AdjustWeights" = ActionType.ADJUST_WEIGHTS
    DELETE_TAB: "FlexLayout_DeleteTab" = ActionType.DELETE_TAB
    DELETE_TABSET: "FlexLayout_DeleteTabset" = ActionType.DELETE_TABSET
    MAXIMIZE_TOGGLE: "FlexLayout_MaximizeToggle" = ActionType.MAXIMIZE_TOGGLE
    MOVE_NODE: "FlexLayout_MoveNode" = ActionType.MOVE_NODE
    RENAME_TAB: "FlexLayout_RenameTab" = ActionType.RENAME_TAB
    SELECT_TAB: "FlexLayout_SelectTab" = ActionType.SELECT_TAB
    SET_ACTIVE_TABSET: "FlexLayout_SetActiveTabset" = ActionType.SET_ACTIVE_TABSET
    UPDATE_MODEL_ATTRIBUTES: "FlexLayout_UpdateModelAttributes" = ActionType.UPDATE_MODEL_ATTRIBUTES
    UPDATE_NODE_ATTRIBUTES: "FlexLayout_UpdateNodeAttributes" = ActionType.UPDATE_NODE_ATTRIBUTES

    Methods

    • Adds a tab node to the given tabset node

      Parameters

      • json: IJsonTabNode

        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.

      • Optionalselect: boolean

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

      Returns Action

      the action

    • Parameters

      • nodeId: string
      • pos: number

      Returns Action

    • Adjust the weights of a row, used when the splitter is moved

      Parameters

      • nodeId: string

        the row node whose childrens weights are being adjusted

      • weights: number[]

        an array of weights to be applied to the children

      Returns Action

      the action

    • Deletes a tab node from the layout

      Parameters

      • tabNodeId: string

        the id of the tab node to delete

      Returns Action

      the action

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

      Parameters

      • tabsetNodeId: string

        the id of the tabset node to delete

      Returns Action

      the action

    • Maximizes the given tabset

      Parameters

      • tabsetNodeId: string

        the id of the tabset to maximize

      • OptionalwindowId: string

      Returns Action

      the action

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

      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.

      • Optionalselect: boolean

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

      Returns Action

      the action

    • Change the given nodes tab text

      Parameters

      • tabNodeId: string

        the id of the node to rename

      • text: string

        the test of the tab

      Returns Action

      the action

    • Selects the given tab in its parent tabset

      Parameters

      • tabNodeId: string

        the id of the node to set selected

      Returns Action

      the action

    • Set the given tabset node as the active tabset

      Parameters

      • tabsetNodeId: string | undefined

        the id of the tabset node to set as active

      • OptionalwindowId: string

      Returns Action

      the action

    • Updates the global model jsone attributes

      Parameters

      • attributes: Partial<IGlobalAttributes>

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

      Returns Action

      the action

    • Updates the given nodes json attributes

      Parameters

      • nodeId: string

        the id of the node to update

      • attributes: NodeAttributes

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

      Returns Action

      the action