UNPKG

react-bootstrap-sweetalert

Version:

A variant of sweetalert for use with React and Bootstrap

39 lines (38 loc) 1.27 kB
import React from 'react'; import { SweetAlertProps } from "../types"; export default class Buttons extends React.Component<SweetAlertProps> { static defaultProps: { confirmBtnText: string; confirmBtnBsStyle: string; confirmBtnCssClass: string; confirmBtnStyle: {}; cancelBtnText: string; cancelBtnBsStyle: string; cancelBtnCssClass: string; cancelBtnStyle: {}; focusConfirmBtn: boolean; focusCancelBtn: boolean; showConfirm: boolean; showCancel: boolean; reverseButtons: boolean; btnSize: string; }; static styles: { [key: string]: { borderColor: string; shadowColor: string; }; }; private buttonStyles; private confirmButtonElement; private cancelButtonElement; componentDidMount(): void; componentDidUpdate(prevProps: SweetAlertProps): void; setConfirmButtonElementRef: (element: HTMLAnchorElement) => void; setCancelButtonElementRef: (element: HTMLAnchorElement) => void; focusButton(): void; getButtonStyle: (bsStyle: string) => any; confirmButtonRender(): false | JSX.Element; cancelButtonRender(): false | JSX.Element; render(): false | JSX.Element; }