Skip to content
Edit this page

SiTabComponent documentation

import { SiTabComponent } from '@siemens/element-ng/tabs';

Creates a normal tab that can contain any content.

Example:

<si-tabset>
  <si-tab heading="Tab 1">
    <p>Content of Tab 1</p>
  </si-tab>
</si-tabset>

Input Properties

Name Type Default Description
active
boolean false

Whether the tab is active or not. If set to true, the tab will be selected and its content will be displayed.

Inherited from SiTabBaseDirective

badgeColor inherited
string | undefined

Background color of the badge. If no color is provided a red dot badge will be rendered.

Inherited from SiTabBaseDirective

badgeContent inherited
boolean | TranslatableString | undefined

Additional badge content. A value of

• true will render a red dot

• any string without a badgeColor will render a red dot with text

• any string with a badgeColor will render a normal badge

Inherited from SiTabBaseDirective

canActivate
(() => boolean) | undefined

Guard to check if the tab can be activated. If not provided, the tab can always be activated.

canDeactivate
(() => boolean) | undefined

Guard to check if the tab can be deactivated. If not provided, the tab can always be deactivated.

closable inherited
boolean false

Close the current tab.

Inherited from SiTabBaseDirective

disabled inherited
boolean false

Disables the tab.

Inherited from SiTabBaseDirective

heading required inherited
TranslatableString

Title of the tab item.

Inherited from SiTabBaseDirective

icon inherited
string | undefined

Icon of the tab item. If provided, heading text will be ignored and only icon will be displayed.

Inherited from SiTabBaseDirective

Output Properties

Name Type Description
activeChange
boolean

Whether the tab is active or not. If set to true, the tab will be selected and its content will be displayed.

Inherited from SiTabBaseDirective

closeTriggered inherited
void

Event emitter to notify when a tab is closed.

Inherited from SiTabBaseDirective

Attributes and Methods

Name Type Description
selectTab()
(retainFocus?: boolean) => void

{@inheritDoc}

Inherited from SiTabBaseDirective

Parameters

Types Documentation

import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';

Represents a translatable string. This can either be a translation key, e.g. ACTIONS.EDIT that will be automatically translated when displayed on the UI or a pre-translated string, e.g. Edit. Equivalent to a normal string in usage and functionality.


Except where otherwise noted, content on this site is licensed under MIT License.