TreeItem
A tree item is an UI element of the tree. Tree items are created by the data provider.
Properties
Accessibility information used when screen reader interacts with this tree item. Generally, a TreeItem has no need to set the role
of the accessibilityInformation; however, there are cases where a TreeItem is not displayed in a tree-like way where setting the role
may make sense.
TreeItemCollapsibleState of the tree item.
Context value of the tree item. This can be used to contribute item specific actions in the tree. For example, a tree item is given a context value as folder
. When contributing actions to view/item/context
using menus
extension point, you can specify context value for key viewItem
in when
expression like viewItem == folder
.
A human-readable string which is rendered less prominent. When true
, it is derived from resourceUri and when falsy
, it is not shown.
The icon path or ThemeIcon for the tree item. When falsy
, Folder Theme Icon} is assigned, if item is collapsible otherwise {@link ThemeIcon.File File Theme Icon. When a file or folder ThemeIcon is specified, icon is derived from the current file icon theme for the specified theme icon using resourceUri (if provided).
A human-readable string describing this item. When falsy
, it is derived from resourceUri.
The Uri of the resource representing this item.