Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TreeView<T>

Represents a Tree view

Type parameters

  • T

Hierarchy

Index

Constructors

constructor

  • new TreeView(func: function): TreeView

Properties

onDidCollapseElement

onDidCollapseElement: Event<TreeViewExpansionEvent<T>>

Event that is fired when an element is collapsed

onDidExpandElement

onDidExpandElement: Event<TreeViewExpansionEvent<T>>

Event that is fired when an element is expanded

selection

selection: ReadonlyArray<T>

Currently selected elements.

Methods

dispose

  • dispose(): void

reveal

  • reveal(element: T, options?: object): PromiseLike<void>
  • Reveal an element. By default revealed element is selected.

    In order to not to select, set the option select to false.

    NOTE: TreeDataProvider is required to implement getParent method to access this API.

    Parameters

    • element: T
    • Optional options: object
      • Optional select?: boolean

    Returns PromiseLike<void>

Static create

Static from

  • Combine many disposable-likes into one. Use this method when having objects with a dispose function which are not instances of Disposable.

    Parameters

    • Rest ...disposableLikes: object[]

      Objects that have at least a dispose-function member.

    Returns Disposable

    Returns a new disposable which, upon dispose, will dispose all provided disposables.