Tab

interface Tab(source)

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

Online Documentation

Properties

Link copied to clipboard
abstract val group: TabGroup

The group which the tab belongs to.

Link copied to clipboard
abstract val input: JsAny

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

Link copied to clipboard
abstract val isActive: Boolean

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

Link copied to clipboard
abstract val isDirty: Boolean

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

Link copied to clipboard
abstract val isPinned: Boolean

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

Link copied to clipboard
abstract val isPreview: Boolean

Whether or not the tab is in preview mode.

Link copied to clipboard
abstract val label: String

The text displayed on the tab.