UNPKG

@paydock/client-sdk

Version:

Paydock client sdk

23 lines 862 B
export declare enum ButtonStyleType { Base = "pd-base-button", Success = "pd-success-button" } type ButtonOptions = { id?: string; buttonStyleType?: ButtonStyleType; buttonType?: 'submit' | 'button' | 'reset'; children?: HTMLElement[]; styles?: Partial<CSSStyleDeclaration>; onClick?: () => void; alignChildren?: 'left' | 'center' | 'right'; }; declare global { interface Window { buttonStylesAdded: boolean; } } export declare function createButton({ id, buttonStyleType, buttonType, children, styles, onClick, alignChildren, }: ButtonOptions): HTMLButtonElement; export declare function createButtonText(text: string): HTMLSpanElement; export declare function toggleButtonsDisableState(availableButtons: NodeListOf<HTMLButtonElement>, disabled: boolean): void; export {}; //# sourceMappingURL=button.d.ts.map