Represents a tab within a {@link TabGroup group of tabs}. Tabs are merely the graphical representation within the editor area. A backing editor is not a guarantee.

Fields

read onlylabel:String

The text displayed on the tab.

read onlyisPreview:Bool

Whether or not the tab is in preview mode.

read onlyisPinned:Bool

Whether or not the tab is pinned (pin icon is present).

read onlyisDirty:Bool

Whether or not the dirty indicator is present on the tab.

read onlyisActive:Bool

Whether or not the tab is currently active. This is dictated by being the selected tab in the group.

read onlyinput:Null<EitherType<TabInputText, EitherType<TabInputTextDiff, EitherType<TabInputCustom, EitherType<TabInputWebview, EitherType<TabInputNotebook, EitherType<TabInputNotebookDiff, TabInputTerminal>>>>>>>

Defines the structure of the tab i.e. text, notebook, custom, etc. Resource and other useful properties are defined on the tab kind.

read onlygroup:TabGroup

The group which the tab belongs to.