SiActionCardComponent documentation¶
import { SiActionCardComponent } from '@siemens/element-ng/card';An action card component that supports actions and selection on native buttons, and navigation on native anchors.
Important: The selectable and selected inputs are supported only on button action cards. Do not use them with an anchor.
Usage: as a selectable button card: <button si-action-card selectable type="button" [(selected)]="isSelected">...</button>
or as an action button card: <button si-action-card type="button" (click)="doSomeAction()">...</button>
or as a navigation card: <a si-action-card href="/details">...</a> <a si-action-card routerLink="/details" routerLinkActive="selected">...</a>
Input Properties¶
| Name | Type | Default | Description |
|---|---|---|---|
| headinginherited ¶ | TranslatableString | undefined | Card header text. Inherited from | |
| imgAltinherited ¶ | TranslatableString | undefined | Alt text for a provided image. Inherited from | |
| imgDirinherited ¶ | "horizontal" | "vertical" | undefined | 'vertical' | Defines if an image is placed on top or start (left) of the card. Inherited from |
| imgObjectFitinherited ¶ | "fill" | "contain" | "cover" | "none" | "scale-down" | undefined | 'scale-down' | Sets the image object-fit CSS property. Inherited from |
| imgObjectPositioninherited ¶ | string | undefined | Sets the image object-position CSS property. Inherited from | |
| imgSrcinherited ¶ | string | undefined | Image source for the card. Inherited from | |
| selectable ¶ | boolean | false | Makes a button action card selectable. |
| selected ¶ | boolean | false | Indicates whether a selectable button action card is selected. |
| subHeadinginherited ¶ | TranslatableString | undefined | Card secondary header text. Inherited from |
Output Properties¶
| Name | Type | Description |
|---|---|---|
| selectedChange ¶ | boolean | Indicates whether a selectable button action card is selected. |
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.