Interface CustomButton

interface CustomButton {
    action?: (() => void) | (() => Promise<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;
    buttonAttributes?: {
        [key: string]: any;
    };
    contentAttributes?: {
        [key: string]: any;
    };
    iconAttributes?: {
        [key: string]: any;
    };
    renderAsButton?: boolean;
}

Properties

action?: (() => void) | (() => Promise<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
buttonAttributes?: {
    [key: string]: any;
}
contentAttributes?: {
    [key: string]: any;
}
iconAttributes?: {
    [key: string]: any;
}
renderAsButton?: boolean