packages/components/eui-content-card/eui-content-card.component.ts
The eui-content-card component is based on Material Design and provides a content container for text, photos and actions in the context of a single subject. Supports selection, collapsing, and bookmarking functionality.
<eui-content-card>
<eui-content-card-header>
<eui-content-card-header-title>Card Title</eui-content-card-header-title>
</eui-content-card-header>
<eui-content-card-body>Card content goes here</eui-content-card-body>
</eui-content-card><eui-content-card
[isSelectable]="true"
[isCollapsible]="true"
(cardSelect)="onCardSelect($event)"
(cardCollapse)="onCardCollapse($event)">
<eui-content-card-header>
<eui-content-card-header-title>Collapsible Card</eui-content-card-header-title>
</eui-content-card-header>
<eui-content-card-body>This content can be collapsed</eui-content-card-body>
</eui-content-card>isSelectable inputisCollapsible inputisBookmarkable input| changeDetection | ChangeDetectionStrategy.OnPush |
| HostDirectives |
BaseStatesDirective
|
| selector | eui-content-card |
| imports |
FormsModule
EUI_INPUT_CHECKBOX
|
| templateUrl | ./eui-content-card.component.html |
| styleUrl | ./eui-content-card.scss |
Methods |
Inputs |
Outputs |
HostBindings |
Accessors |
| e2eAttr |
Type : string
|
Default value : 'eui-content-card'
|
|
Sets the |
| isBookmarkable |
Type : boolean
|
Default value : false
|
|
Sets the |
| isBookmarked |
Type : boolean
|
Default value : false
|
|
Sets the |
| isCollapsed |
Type : boolean
|
Default value : false
|
|
Sets the |
| isCollapsible |
Type : boolean
|
Default value : false
|
|
Sets the |
| isSelectable |
Type : boolean
|
Default value : false
|
|
Sets the |
| isSelected |
Type : boolean
|
Default value : false
|
|
Sets the |
| cardBookmark |
Type : EventEmitter
|
|
Event emitted when the card is bookmarked. |
| cardCollapse |
Type : EventEmitter
|
|
Event emitted when the card is bookmarked. |
| cardSelect |
Type : EventEmitter
|
|
Event emitted when the card is selected. |
| class |
Type : string
|
|
Computes and returns the CSS classes for the component based on its current state. |
| toggleBookmark |
toggleBookmark()
|
|
Returns :
void
|
| toggleCollapse |
toggleCollapse()
|
|
Returns :
void
|
| cssClasses |
getcssClasses()
|
|
Computes and returns the CSS classes for the component based on its current state.
Returns :
string
|