Skip to main content

IShellPaneTab

Tabs can be accessed using IShellPaneContainer methods like AddTab or GetTab. Usually Tab is used to open a Dashboard

Properties

NameTypeDescription
EventsIEvents
IsBuiltInboolean
Selectedboolean
TabIdstring
Titlestring
Visibleboolean

Methods

NameDescription
RemoveRemoves the tab.
SelectRequests the tab to be selected.
SetVisibleSet the tab visibility
ShowDashboardShows the specified dashboard in the tab.
ShowEmptyContentClears the tab content area.
UnselectRequests the tab to be unselected.

Events

Started

Sent when the object turns to started state.

MFiles.Event.Started

Event has no arguments

Example Code

const eventHandle = await shellPaneTab.Events.Register(
MFiles.Event.Started,
() => {
// Handle event
},
);

// Later unregister the event
shellPaneTab.Events.Unregister(eventHandle);

Stop

Sent before the object is stopped.

MFiles.Event.Stop

Event has no arguments

Example Code

const eventHandle = await shellPaneTab.Events.Register(
MFiles.Event.Stop,
() => {
// Handle event
},
);

// Later unregister the event
shellPaneTab.Events.Unregister(eventHandle);