@webilix/ngx-helper-m3
Version:
Helper library for Angular and Material 3
26 lines (25 loc) • 682 B
TypeScript
interface ICardButton {
readonly title: string;
readonly icon: string;
readonly action: () => void;
readonly color?: string;
readonly showIcon?: boolean;
}
interface ICardMenu {
readonly title: string;
readonly icon: string;
readonly color?: string;
readonly showIcon?: boolean;
readonly buttons: ('DIVIDER' | ICardButton)[];
}
export type NgxHelperCardAction = ICardButton | ICardMenu;
export interface INgxHelperCardOption {
readonly id?: string;
readonly icon: string;
readonly items: ('DIVIDER' | {
readonly id: string;
readonly title: string;
})[];
readonly action: (id: string) => void;
}
export {};