flexlayout-react
    Preparing search index...

    Class Actions

    The Action creator class for FlexLayout model actions

    Index

    Constructors

    Properties

    ADD_NODE: string = "FlexLayout_AddNode"
    ADJUST_BORDER_SPLIT: string = "FlexLayout_AdjustBorderSplit"
    ADJUST_WEIGHTS: string = "FlexLayout_AdjustWeights"
    CLOSE_WINDOW: string = "FlexLayout_CloseWindow"
    CREATE_WINDOW: string = "FlexLayout_CreateWindow"
    DELETE_TAB: string = "FlexLayout_DeleteTab"
    DELETE_TABSET: string = "FlexLayout_DeleteTabset"
    MAXIMIZE_TOGGLE: string = "FlexLayout_MaximizeToggle"
    MOVE_NODE: string = "FlexLayout_MoveNode"
    POPOUT_TAB: string = "FlexLayout_PopoutTab"
    POPOUT_TABSET: string = "FlexLayout_PopoutTabset"
    RENAME_TAB: string = "FlexLayout_RenameTab"
    SELECT_TAB: string = "FlexLayout_SelectTab"
    SET_ACTIVE_TABSET: string = "FlexLayout_SetActiveTabset"
    UPDATE_MODEL_ATTRIBUTES: string = "FlexLayout_UpdateModelAttributes"
    UPDATE_NODE_ATTRIBUTES: string = "FlexLayout_UpdateNodeAttributes"

    Methods

    • Adds a tab node to the given tabset node

      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.

      • 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

    • Closes the popout window

      Parameters

      • windowId: string

        the id of the popout window to close

      Returns 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

    • Pops out the given tab node into a new browser window

      Parameters

      • nodeId: string

        the tab node to popout

      Returns Action

    • Pops out the given tab set node into a new browser window

      Parameters

      • nodeId: string

        the tab set node to popout

      Returns 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: undefined | string

        the id of the tabset node to set as active

      • OptionalwindowId: string

      Returns Action

      the action

    • Updates the global model jsone attributes

      Parameters

      • attributes: any

        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: any

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

      Returns Action

      the action