Skip to main content

TreeViewController

interface
interface TreeViewController<TElement extends object, TContextValue extends string>

Import

import { TreeViewController } from '@modular/sdk';

Members11

containeroptional
'anywhere' | 'left' | 'right' | 'bottom'
iconoptional
string

The view's nav icon — shown on its activity-bar / panel entry. A design system icon name (the icon's export name), e.g. `'IconSparkle2Outline24'`, `'IconStarOutline24'`, or a codicon like `'CodiconAccount'`. Rendered monochrome, tinted to the active foreground — distinct from the mod's full-color `metadata.icon`. Omit and the view falls back to a placeholder.

id
string
inlineActionsoptional
readonly TreeInlineAction<TElement, TContextValue>[]
kind
'tree'
provider
TreeDataProvider<TElement, TContextValue>
title
string
whenoptional
Condition<string>
onDidChangeTreeData
(listener: (change: TreeDataChange<TElement>) => void) => Disposable
onSelectoptional
(element: TElement, ctx: TreeContext<TElement>) => void | Promise<void>
refresh
(...elements: readonly TElement[]) => void