src/app/components/card-button-long/long-card.ts
An interface representing the details to be displayed inside the card
Properties |
alt |
alt:
|
Type : string
|
Alternate text for the icon of the card |
body |
body:
|
Type : string
|
Description of the card |
color |
color:
|
Type : string
|
Optional |
Background color of the icon of the card |
externalLink |
externalLink:
|
Type : string
|
Optional |
URL to be redirected to when clicked |
icon |
icon:
|
Type : string
|
Path to the icon of the card |
route |
route:
|
Type : string
|
Optional |
Route to be redirected to when card is clicked |
title |
title:
|
Type : string
|
Title inside the card |
export interface LongCard {
/** Path to the icon of the card */
icon: string;
/** Title inside the card */
title: string;
/** URL to be redirected to when clicked */
externalLink?: string;
/** Description of the card */
body: string;
/** Route to be redirected to when card is clicked */
route?: string;
/** Background color of the icon of the card */
color?: string;
/** Alternate text for the icon of the card */
alt: string;
}
/** An interface representing heading and LongCard details */
export interface CardBlock {
/** Heading of the card(s) */
heading: string;
/** Card details of the card(s) */
cardData: LongCard[];
/** Font size of the heading of the card */
headerSize?: string;
/** Element id of the heading of the card */
id?: string;
}