src/lib/markup-kit/card/card-long/card-long.component.ts
Component for displaying a long card with a title, parameters, and description.
Example of usage:
<mefdev-card-long
[type_text]="'Type Text'"
[type_color]="CartTypeColors.RED"
[img]="'path/to/image.jpg'"
[imgUrl]="'path/to/image'"
[description]="'Card description'">
<ng-template #title>
<!-- Content for the card title -->
</ng-template>
<ng-template #params>
<!-- Content for the card parameters -->
</ng-template>
<ng-template #second_col>
<!-- Content for the second column -->
</ng-template>
<ng-template #third_col>
<!-- Content for the third column -->
</ng-template>
</mefdev-card-long>
OnInit
selector | mefdev-card-long |
styleUrls | ./card-long.component.scss |
templateUrl | ./card-long.component.html |
Properties |
Methods |
|
Inputs |
constructor(router: Router)
|
||||||
Parameters :
|
description |
Type : string
|
The description of the card.
|
img |
Type : string
|
The path to the image.
|
imgUrl |
Type : string
|
The path, where user goes after click at the image.
|
type_color |
Type : CartTypeColors
|
Default value : CartTypeColors.UNSET
|
The color of the card type.
Colors: RED, UNSET, GREEN |
type_text |
Type : string
|
The text for the card type.
|
Public imgClick |
imgClick()
|
Event handler for image click. Navigates to the specified URL.
Returns :
void
|