Options
All
  • Public
  • Public/Protected
  • All
Menu

Class containing the Tree of Nodes used by the FlexLayout component

Hierarchy

  • Model

Index

Methods

doAction

  • Update the node tree by performing the given action, Actions should be generated via static methods on the Actions class

    Parameters

    • action: Action

      the action to perform

    Returns undefined | Node

    added Node for Actions.addNode; undefined otherwise

getActiveTabset

  • Get the currently active tabset node

    Returns undefined | TabSetNode

getBorderSet

getMaximizedTabset

  • Get the currently maximized tabset node

    Returns undefined | TabSetNode

getNodeById

  • getNodeById(id: string): Node
  • Gets a node by its id

    Parameters

    • id: string

      the id to find

    Returns Node

getRoot

  • Gets the root RowNode of the model

    Returns RowNode

getSplitterExtra

  • getSplitterExtra(): number
  • Returns number

getSplitterSize

  • getSplitterSize(): number
  • Returns number

isEnableEdgeDock

  • isEnableEdgeDock(): boolean
  • Returns boolean

isLegacyOverflowMenu

  • isLegacyOverflowMenu(): boolean
  • Returns boolean

isRootOrientationVertical

  • isRootOrientationVertical(): boolean
  • Returns boolean

isUseVisibility

  • isUseVisibility(): boolean
  • Returns boolean

setOnAllowDrop

  • setOnAllowDrop(onAllowDrop: (dragNode: Node, dropInfo: DropInfo) => boolean): void
  • Sets a function to allow/deny dropping a node

    Parameters

    • onAllowDrop: (dragNode: Node, dropInfo: DropInfo) => boolean

      function that takes the drag node and DropInfo and returns true if the drop is allowed

    Returns void

setOnCreateTabSet

  • 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)

    Parameters

    Returns void

toJson

  • Converts the model to a json object

    Returns IJsonModel

    json object that represents this model

toString

  • toString(): string
  • Returns string

visitNodes

  • visitNodes(fn: (node: Node, level: number) => void): void
  • Visits all the nodes in the model and calls the given function for each

    Parameters

    • fn: (node: Node, level: number) => void

      a function that takes visited node and a integer level as parameters

        • (node: Node, level: number): void
        • Parameters

          • node: Node
          • level: number

          Returns void

    Returns void

Static fromJson

  • Loads the model from the given json object

    Parameters

    Returns Model

    a new Model object

Static toTypescriptInterfaces

  • toTypescriptInterfaces(): void
  • Returns void

Generated using TypeDoc