WidgetPositionConfig Type documentation¶
TypeScript declaration¶
import type { WidgetPositionConfig } from '@siemens/dashboards-ng';Type to define the position of a widget instance, consisting of the instance id and x, y, width and height.
Types Documentation¶
import type { WidgetConfig } from '@siemens/dashboards-ng';A WidgetConfig holds the configuration of a widget instance component that is visible on a dashboard. It can be persisted and used to restore a dashboards state.
-
Optional type of the accent line.
-
Defines whether the widget instance component can be expanded and enlarged over the dashboard.
-
grid item header text.
-
Icon name or a single-entry map of camelCase icon name to SVG data URI.
headingIcon?:
string | Record<string, string>¶ -
Height of the grid item, where number represents how many rows it takes. (default?: 1)
-
A unique id of a widget instance
-
Optional configuration for an image to be displayed on the widget instance.
-
minimum height allowed during resize/creation (default?: undefined = un-constrained)
-
minimum width allowed during resize/creation (default?: undefined = un-constrained)
-
A widget specific payload object. Placeholder to pass in additional configuration.
-
If true, the widget host renders a placeholder and waits for explicit configuration before instantiating the widget instance component.
Indicates that initial setup by the user is still pending. The flag flips to
falseonce the setup has been completed. -
Optionally, the version widget description that was used to create the widget config.
-
The id of the widget descriptor that was used to instantiate the
WidgetConfigand the widget instance component. -
Width of the grid item, where number represents how many columns it spans (default?: 1)
-
Grid item position on x axis of the grid (default?: 0)
-
Grid item position on y axis of the grid (default?: 0)
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 { ViewType } from '@siemens/element-ng/content-action-bar'; import type { WidgetImage } from '@siemens/dashboards-ng';Image is used to configure an image to be displayed on a widget instance.
-
The HTMLImageElement property alt provides fallback (alternate) text to display when the image specified by the <img> element is not loaded.
-
Defines if an image is placed on top or start (left) of the card.
-
Sets the image object-fit CSS property.
-
Sets the image object-position CSS property.
-
The image URL (See <img>).
import type { AccentLineType } from '@siemens/element-ng/common'; import type { ObjectFit } from '@siemens/dashboards-ng';ObjectFit configuration options for a widget image.
See: https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit
import type { StatusType } from '@siemens/element-ng/common'; Except where otherwise noted, content on this site is licensed under MIT License.