TreeView

interface TreeView<T : JsAny?> : Disposable(source)

Represents a Tree view

Online Documentation

Types

Link copied to clipboard
interface RevealOptions

Properties

Link copied to clipboard
abstract var badge: ViewBadge?

The badge to display for this TreeView. To remove the badge, set to undefined.

Link copied to clipboard
abstract var description: String?

An optional human-readable description which is rendered less prominently in the title of the view. Setting the title description to null, undefined, or empty string will remove the description from the view.

Link copied to clipboard
abstract var message: String?

An optional human-readable message that will be rendered in the view. Setting the message to null, undefined, or empty string will remove the message from the view.

Link copied to clipboard

An event to signal that an element or root has either been checked or unchecked.

Link copied to clipboard

Event that is fired when the selection has changed

Link copied to clipboard

Event that is fired when visibility has changed

Link copied to clipboard

Event that is fired when an element is collapsed

Link copied to clipboard

Event that is fired when an element is expanded

Link copied to clipboard
abstract val selection: ReadonlyArray<T>

Currently selected elements.

Link copied to clipboard
abstract var title: String?

The tree view title is initially taken from the extension package.json Changes to the title property will be properly reflected in the UI in the title of the view.

Link copied to clipboard
abstract val visible: Boolean

true if the tree view is visible otherwise false.

Functions

Link copied to clipboard
open override fun dispose()

Dispose this object.

Link copied to clipboard
abstract fun reveal(element: T, options: TreeView.RevealOptions = definedExternally): PromiseLike<Void?>

Reveals the given element in the tree view. If the tree view is not visible then the tree view is shown and element is revealed.