SiDashboardCardComponent documentation¶
selector
si-dashboard-card
Input Properties¶
Name | Type | Default | Description |
---|---|---|---|
actionBarTitle ¶ | TranslatableString | '' | Optional setting of html title attribute for the content action bar. Helpful for a11y when only one action is configured in expand mode. |
actionBarViewType ¶ | ViewType | 'collapsible' | The view type of the content action bar of the card. Default is collapsible for dashboards. However, in some cases you might need to change to expanded or mobile . |
actionParam ¶ | any | A param that will be passed to the action in the primary/secondary actions. This allows to re-use the same primary/secondary action arrays across rows in a table. | |
enableExpandInteraction ¶ | boolean | false | Option to enable and show the UI controls for card expand functionality. Expand and restore action items will be added to the content action bar. The expand resizing has to be implemented by the container of the card. |
expandText ¶ | TranslatableString | $localize`:@@SI_DASHBOARD.EXPAND:Expand` | Description of expand button & action. |
heading ¶ | TranslatableString | Card header text. | |
imgAlt ¶ | string | Alt text for a provided image. | |
imgDir ¶ | (undefined | "horizontal" | "vertical" ) | 'vertical' | Defines if an image is placed on top or start (left) of the card. |
imgObjectFit ¶ | (undefined | "fill" | "contain" | "cover" | "none" | "scale-down" ) | 'scale-down' | Sets the image object-fit CSS property, Sets the image object-fit CSS property. |
imgObjectPosition ¶ | string | Sets the image object-position CSS property. | |
imgSrc ¶ | string | Image source for the card. | |
primaryActions ¶ | (MenuItem | ContentActionBarMainItem )[] | [] | Input list of primary action items. Supports up to 4 actions and omits additional ones. |
restoreText ¶ | TranslatableString | $localize`:@@SI_DASHBOARD.RESTORE:Restore` | Description of cancel button & action. |
secondaryActions ¶ | (MenuItem | MenuItem )[] | [] | Input list of secondary action items. |
showMenubar ¶ | boolean | true | Used in combination with si-dashboard to show filters when a card is expanded or not. |
Output Properties¶
Name | Type | Description |
---|---|---|
expandChange ¶ | boolean | Emitter for size state change |
Attributes and Methods¶
Name | Type | Default | Description |
---|---|---|---|
(readonly) displayContentActionBar ¶ | Signal <boolean > | ... | Returns true when primary or secondary actions are set. |
(readonly) enableExpandInteractionComputed ¶ | Signal <boolean > | ... | |
expand() ¶ | () => void | Expand the dashboard card. | |
(readonly) isExpanded ¶ | WritableSignal <boolean > | false | Whether the card is currently expanded. |
restore() ¶ | () => void | Restore the dashboard card to the original, non-expanded state. |
Types Documentation¶
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. |
---|
Translatable import imported from @siemens/element-translate-ng |
---|
|
|
|
Represents a menu item that navigates using the Angular Router. Requires a configured Angular Router. | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
|
|
|
|
Implement and provide this to an SiMenuFactoryComponent to receive trigger events. | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Used in events emitted from SiLinkActionService | |||
---|---|---|---|
|
|
| |||||||||||||||||||||
| |||||||||||||||||||||
|
| |||||||
| |||||||
|
Except where otherwise noted, content on this site is licensed under MIT License.