Options
All
  • Public
  • Public/Protected
  • All
Menu

PageTree which allows for drag+drop, and in-place editing, as well as tree highlighting from the outside

Hierarchy

Index

Constructors

constructor

Properties

container

container: TreeWrapperSelection<SVGGElement> = null

SVG container wrapping all .nodes, .links, .nodes-bg elements

Protected data

data: SvgTreeData = ...

dragDrop

hoveredNode

hoveredNode: TreeNode = null

Is set when the input device is hovered over a node

Protected icons

icons: {} = {}

Type declaration

Protected iconsContainer

iconsContainer: TreeWrapperSelection<SVGDefsElement> = null

SVG container wrapping all icon definitions

isOverSvg

isOverSvg: boolean = false

Check if cursor is over the SVG element

Protected linksContainer

linksContainer: TreeWrapperSelection<SVGGElement> = null

SVG container wrapping all links (lines between parent and child)

Protected networkErrorMessage

networkErrorMessage: string = TYPO3.lang.pagetree_networkErrorDesc

Protected networkErrorTitle

networkErrorTitle: string = TYPO3.lang.pagetree_networkErrorTitle

nodeIsEdit

nodeIsEdit: boolean

nodes

nodes: TreeNode[] = []

Protected nodesActionsContainer

nodesActionsContainer: TreeWrapperSelection<SVGGElement> = null

nodesBgContainer

nodesBgContainer: TreeWrapperSelection<SVGGElement> = null

SVG container wrapping all .nodes-bg elements

nodesContainer

nodesContainer: TreeWrapperSelection<SVGGElement> = null

SVG container wrapping all .node elements

Protected scrollBottom

scrollBottom: number = 0

Protected searchTerm

searchTerm: string = null

settings

settings: SvgTreeSettings = ...

Optional setup

setup?: {} = null

Type declaration

  • [keys: string]: any

svg

svg: TreeWrapperSelection<SVGSVGElement> = null

Root element

textPosition

textPosition: number = 10

Protected tooltipOptions

tooltipOptions: Partial<Options> = {}

Protected unfilteredNodes

unfilteredNodes: string = ''

Protected viewportHeight

viewportHeight: number = 0

Methods

Protected appendTextElement

Protected chevronClick

Protected clickOnIcon

connectedCallback

  • connectedCallback(): void

Protected createIconAreaForAction

  • createIconAreaForAction(actionItem: any, iconIdentifier: string): void

Protected createRenderRoot

  • createRenderRoot(): HTMLElement | ShadowRoot

Protected disableSelectedNodes

  • disableSelectedNodes(): void

doSetup

  • doSetup(settings: any): void

Private editNodeLabel

Protected enterSvgElements

errorNotification

  • errorNotification(error?: any, refresh?: boolean): void

fetchIcon

  • fetchIcon(iconName: string, update?: boolean): void

filter

  • filter(searchTerm?: string): void

Protected firstUpdated

  • firstUpdated(): void

Protected getChevronClass

Protected getChevronColor

Protected getChevronTransform

  • getChevronTransform(node: TreeNode): string

getIconId

getIconOverlayId

  • getIconOverlayId(node: TreeNode): string

Protected getLinkPath

Protected getNodeActionTransform

  • getNodeActionTransform(node: TreeNode): string

Protected getNodeBgClass

Protected getNodeBgTransform

  • getNodeBgTransform(node: TreeNode): string

Protected getNodeByIdentifier

  • getNodeByIdentifier(identifier: string): TreeNode

Protected getNodeDepth

getNodeElement

  • getNodeElement(node: TreeNode): HTMLElement

Protected getNodeIdentifier

  • getNodeIdentifier(node: TreeNode): string

Protected getNodeLabel

Protected getNodePositionInSet

  • getNodePositionInSet(node: TreeNode): number

Protected getNodeSetsize

Protected getNodeStateIdentifier

  • getNodeStateIdentifier(node: TreeNode): string

Protected getNodeTitle

Protected getNodeTransform

  • getNodeTransform(node: TreeNode): string

getSelectedNodes

Protected getToggleVisibility

  • getToggleVisibility(node: TreeNode): string

hideChildren

initializeDragForNode

  • initializeDragForNode(): DragBehavior<Element, unknown, unknown>

Protected isNodeSelectable

  • isNodeSelectable(node: TreeNode): boolean

Protected loadChildrenOfNode

  • loadChildrenOfNode(parentNode: TreeNode): void

loadData

  • loadData(): void

nodesAddPlaceholder

  • nodesAddPlaceholder(node?: TreeNode): void

nodesRemovePlaceholder

  • nodesRemovePlaceholder(): void

nodesUpdate

prepareDataForVisibleNodes

  • prepareDataForVisibleNodes(): void

refreshOrFilterTree

  • refreshOrFilterTree(): void

refreshTree

  • refreshTree(): void

removeEditedText

  • removeEditedText(): void

Protected render

  • render(): TemplateResult<ResultType>

replaceData

Private requestTreeUpdate

  • requestTreeUpdate(params: any, node?: any): Promise<any>

resetFilter

  • resetFilter(): void

selectFirstNode

  • selectFirstNode(): void

selectNode

  • selectNode(node: TreeNode, propagate?: boolean): void

sendChangeCommand

  • sendChangeCommand(data: any): void

Private sendEditNodeLabelCommand

  • sendEditNodeLabelCommand(node: TreeNode): void

setExpandedState

setParametersNode

  • setParametersNode(nodes?: TreeNode[]): void

showChildren

switchFocus

  • switchFocus(element: HTMLElement | SVGElement): void

switchFocusNode

Protected updateNodeActions

updateNodeBgClass

Protected updateView

  • updateView(): void

updateVisibleNodes

  • updateVisibleNodes(): void

Generated using TypeDoc