gov-gui
Version:
Gov UI Component Library Typscript Build
31 lines (30 loc) • 1.01 kB
TypeScript
import { EventEmitter } from '../../stencil-public-runtime';
import { AnimationProps } from '../../global/animation-helpers';
export declare class MyCard implements AnimationProps {
el: HTMLElement;
cardTitle: string;
description: string;
imageSrc: string;
buttonText: string;
showButton: boolean;
alignment: 'vertical' | 'horizontal';
imageClip: 'cover' | 'contain' | 'fill' | 'none';
isTextExpanded: boolean;
isTextOverflowing: boolean;
cardButtonClicked: EventEmitter<void>;
animation?: string;
animationDelay?: '2s' | '3s' | '4s' | '5s';
animationSpeed?: 'slow' | 'slower' | 'fast' | 'faster';
private allClasses;
watchAnimations(): void;
watchAnimationsDelay(): void;
watchAnimationsSpeed(): void;
componentWillLoad(): void;
provideClass(): void;
componentDidRender(): void;
private checkTextOverflow;
private handleButtonClick;
private toggleTextExpansion;
private truncateButtonText;
render(): any;
}