Skip to content

Status counter

The status counter component (formerly icon status) represents a customizable icon with a counter.

Code

Usage

import { SiStatusCounterComponent } from '@siemens/element-ng/status-counter';

@Component({
  imports: [SiStatusCounterComponent, ...]
})

Stacked icons

When using stacked icons we recommend using the composite icons to create harmonious icons.

SiStatusCounterComponent API Documentation

Source
import { SiStatusCounterComponent } from '@siemens/element-ng/status-counter';

Input Properties

NameTypeDefaultDescription
color
string | undefined

Color of the icon

count
number 0

Counter below the icon

disabled
boolean false

Whether the icon is disabled.

iconrequired
string

Icon to display.

stackedIcon
string | undefined

Stacked icon to display.

Attributes and Methods

NameTypeDefaultDescription
(readonly) isDisabledOrCountZero
Signal<boolean> computed(() => !!this.disabled() || this.count() === 0)

SiStatusIconComponent API Documentation

Source
import { SiStatusIconComponent } from '@siemens/element-ng/icon';

Input Properties

NameTypeDescription
statusrequired
EntityStatusType

Status that determines the rendered stacked icon and accessible label.

Types Documentation

StatusType

'success' | 'info' | 'warning' | 'danger' | 'caution' | 'critical'
type alias

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