Skip to content

SiValueWidgetBodyComponent documentation

import { SiValueWidgetBodyComponent } from '@siemens/element-ng/dashboard';

The body of the <si-value-widget>. Useful for compositions.

Input Properties

NameTypeDefaultDescription
description
TranslatableString | undefined

Short description of the value. A description is mandatory to show an icon. Only visible if value is available.

disableAutoLoadingIndicatorinherited
boolean false

Option to disable automatic start of skeleton loading indication.

Inherited from SiWidgetBaseDirective<TranslatableString>

icon
string | undefined

The element icon name. Only visible if value is available.

initialLoadingIndicatorDebounceTimeinherited
number 300

Initial delay time in milliseconds before enabling loading indicator. Only used once initially during construction.

Inherited from SiWidgetBaseDirective<TranslatableString>

showLoadingIndicatorinherited
boolean false

Input to start and stop the skeleton loading indication.

Inherited from SiWidgetBaseDirective<TranslatableString>

status
EntityStatusType | undefined

Show a status icon instead of the icon.

unit
TranslatableString | undefined

The unit of the value (e.g. kWh or users). Only visible if value is available.

valuerequiredinherited
TranslatableString | undefined

The main value to be displayed. If no value is set, the skeleton indicates the loading of the value. Disable the automatic loading mechanism by setting SiWidgetBodyBaseComponent.disableAutoLoadingIndicator.

Inherited from SiWidgetBaseDirective<TranslatableString>

Attributes and Methods

NameTypeDefaultDescription
(readonly) showLoadingIndicatorinherited
Signal<boolean> ...

Inherited from SiWidgetBaseDirective<TranslatableString>

Types Documentation

import type { EntityStatusType } from '@siemens/element-ng/common';
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.

import type { ExtendedStatusType } from '@siemens/element-ng/common';

StatusType

'success' | 'info' | 'warning' | 'danger' | 'caution' | 'critical'
type alias
import type { StatusType } from '@siemens/element-ng/common';

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