Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Tree<SS>

Type parameters

  • SS

Hierarchy

Index

Constructors

constructor

Properties

Static defaultProps

defaultProps: TreeProps

Methods

Optional UNSAFE_componentWillMount

  • UNSAFE_componentWillMount(): void
  • Returns void

Optional UNSAFE_componentWillReceiveProps

  • UNSAFE_componentWillReceiveProps(nextProps: Readonly<TreeProps>, nextContext: any): void
  • Parameters

    • nextProps: Readonly<TreeProps>
    • nextContext: any

    Returns void

Optional UNSAFE_componentWillUpdate

  • UNSAFE_componentWillUpdate(nextProps: Readonly<TreeProps>, nextState: Readonly<__type>, nextContext: any): void
  • Parameters

    • nextProps: Readonly<TreeProps>
    • nextState: Readonly<__type>
    • nextContext: any

    Returns void

Optional componentDidCatch

  • componentDidCatch(error: Error, errorInfo: ErrorInfo): void
  • Parameters

    • error: Error
    • errorInfo: ErrorInfo

    Returns void

Optional componentDidMount

  • componentDidMount(): void
  • Returns void

Optional componentDidUpdate

  • componentDidUpdate(prevProps: Readonly<TreeProps>, prevState: Readonly<__type>, snapshot: SS): void
  • Parameters

    • prevProps: Readonly<TreeProps>
    • prevState: Readonly<__type>
    • Optional snapshot: SS

    Returns void

Optional componentWillMount

  • componentWillMount(): void
  • Returns void

Optional componentWillReceiveProps

  • componentWillReceiveProps(nextProps: Readonly<TreeProps>, nextContext: any): void
  • Parameters

    • nextProps: Readonly<TreeProps>
    • nextContext: any

    Returns void

Optional componentWillUnmount

  • componentWillUnmount(): void
  • Returns void

Optional componentWillUpdate

  • componentWillUpdate(nextProps: Readonly<TreeProps>, nextState: Readonly<__type>, nextContext: any): void
  • Parameters

    • nextProps: Readonly<TreeProps>
    • nextState: Readonly<__type>
    • nextContext: any

    Returns void

Optional getSnapshotBeforeUpdate

  • getSnapshotBeforeUpdate(prevProps: Readonly<TreeProps>, prevState: Readonly<__type>): SS | null
  • Parameters

    • prevProps: Readonly<TreeProps>
    • prevState: Readonly<__type>

    Returns SS | null

render

  • render(): Element

Optional shouldComponentUpdate

  • shouldComponentUpdate(nextProps: Readonly<TreeProps>, nextState: Readonly<__type>, nextContext: any): boolean
  • Parameters

    • nextProps: Readonly<TreeProps>
    • nextState: Readonly<__type>
    • nextContext: any

    Returns boolean

Static addNodes

Static convertHierarchicalTree

Static getAncestors

  • getAncestors(nodeId: string): string[]
  • Parameters

    • nodeId: string

    Returns string[]

    string[] Array of node ids - the parents of the given node.

Static getDepth

Static getDescendants

  • getDescendants(tree: TreeDataType, nodeId: string): string[]

Static initHierarchicalTree

Static initTree

Static nodeChecked

Static nodeChildren

Static nodeDisabled

Static nodeExpanded

Static nodeLoading

Static nodeSearch

  • nodeSearch(tree: TreeDataType, nodeID: string, attrName: string, searchString: string): string[]
  • Parameters

    • tree: TreeDataType
    • nodeID: string
    • attrName: string
    • searchString: string

    Returns string[]

    string[] Array of ID's where the string is present.

Static nodeSelected

Static nodeSelector

Static nodeUpdater

Generated using TypeDoc