import * as React from 'react'; import { IBaseToolProps, BaseTool } from './BaseTool'; export interface IBaseButtonToolProps extends IBaseToolProps { /** * Toggle. */ toggle?: boolean; /** * Title. */ buttonTitle?: string; /** * Content */ buttonContent?: string | React.ReactElement; /** * Click handler. */ onButtonClick?: () => void; } export declare class BaseButtonTool
extends BaseTool
{
static defaultProps: {
toggle: boolean;
className: string;
buttonTitle: string;
activated: boolean;
defaultActivated: boolean;
independant: boolean;
};
handleBaseButtonClick: (event: React.MouseEvent (component: string | React.FunctionComponent ) => Pick ;
state: never;
refs: {
[key: string]: React.ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly , nextState: never, nextContext: any): boolean;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly , prevState: never): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly , nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly , nextContext: any): void;
componentWillUpdate?(nextProps: Readonly , nextState: never, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly , nextState: never, nextContext: any): void;
};
new (props: P, context: any): {
renderTool(): React.ReactNode;
handleBaseButtonClick: (event: React.MouseEvent ) => Pick ;
state: never;
refs: {
[key: string]: React.ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly , nextState: never, nextContext: any): boolean;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly , prevState: never): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly , nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly , nextContext: any): void;
componentWillUpdate?(nextProps: Readonly , nextState: never, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly , nextState: never, nextContext: any): void;
};
defaultProps: {
toggle: boolean;
className: string;
buttonTitle: string;
activated: boolean;
defaultActivated: boolean;
independant: boolean;
};
contextType: React.Context