Interface CustomButton

interface CustomButton {
    action: (() => void);
    show: boolean | (() => boolean);
    backgroundColor?: string;
    disabled?: boolean;
    icon?: IconDefinition;
    iconStyle?: Partial<CSSStyleDeclaration>;
    text?: string;
    textStyle?: Partial<CSSStyleDeclaration>;
    customComponent?: HTMLElement | CustomComponent | (() => HTMLElement | CustomComponent);
    injector?: Injector;
}

Properties

action: (() => void)
show: boolean | (() => boolean)
backgroundColor?: string
disabled?: boolean
icon?: IconDefinition
iconStyle?: Partial<CSSStyleDeclaration>
text?: string
textStyle?: Partial<CSSStyleDeclaration>
customComponent?: HTMLElement | CustomComponent | (() => HTMLElement | CustomComponent)
injector?: Injector