Options
All
  • Public
  • Public/Protected
  • All
Menu

A tree with bindable Root content and Selection. Usage example:

<tree content.bind="RootContent" selection.two-way="SelectionContent"></tree>

Hierarchy

  • Tree

Index

Properties

Children

Children: Content[] = []

List of the child content (will be reloaded on each expand)

Content

Content: Content

The root level Content instance of the tree

HasChildren

HasChildren: boolean = true

Property that represents of the tree has children or not

IsExpanded

IsExpanded: boolean = false

Property that represents if the tree is expanded or not

IsLoading

IsLoading: boolean = false

Property that represents if the tree is currently loading it's child content

NestingLevel

NestingLevel: number = 0

Selection

Selection: Content

An optional Content that represents the current Selection for the Tree. Used for auto-expand and Selection binding

Subscriptions

Subscriptions: Subscription[] = []

Accessors

IsSelected

  • get IsSelected(): boolean
  • indicates if the current level Content is selected in the Tree. This getter is also used for auto-expand

    Returns boolean

Repository

  • get Repository(): BaseRepository

hasValidContent

  • get hasValidContent(): boolean

Methods

Collapse

  • Collapse(): void

ContentChanged

  • ContentChanged(): void

Expand

  • Expand(): Promise<void>

OnDropContent

  • OnDropContent(params: object): void

OnDropContentList

  • OnDropContentList(params: object): void

OnDropFiles

  • OnDropFiles(params: object): void

ReorderChildren

  • ReorderChildren(): void

Select

  • Select(): void

Toggle

  • Toggle(): void

clearSubscriptions

  • clearSubscriptions(): void

detached

  • detached(): void

dropContent

  • dropContent(event: DragEvent, stringifiedContent: string, stringifiedContentList?: string[], files?: FileList): Promise<void>
  • Parameters

    • event: DragEvent
    • stringifiedContent: string
    • Optional stringifiedContentList: string[]
    • Optional files: FileList

    Returns Promise<void>

handleContentCreated

  • handleContentCreated(created: Created): void

handleContentDeleted

  • handleContentDeleted(deleted: Deleted): void

handleContentModified

  • handleContentModified(modified: Modified): void

handleContentMoved

  • handleContentMoved(moved: ContentMoved): Observable<Content>

Generated using TypeDoc