@gooddata/react-components
Version:
GoodData.UI - A powerful JavaScript library for building analytical applications
30 lines (29 loc) • 1.12 kB
TypeScript
import * as React from "react";
import { WrappedComponentProps } from "react-intl";
import { ISeparators } from "../../filters/MeasureValueFilter/separators";
import { IPositioning } from "../../../typings/positioning";
import { IFormatTemplate } from "../typings";
interface ICustomFormatDialogOwnProps {
onApply: (formatString: string) => void;
onCancel: () => void;
formatString: string;
documentationLink?: string;
anchorEl?: string | EventTarget;
positioning?: IPositioning[];
separators?: ISeparators;
locale?: string;
templates?: ReadonlyArray<IFormatTemplate>;
}
interface ICustomFormatDialogState {
format: string;
}
declare type ICustomFormatDialogProps = ICustomFormatDialogOwnProps & WrappedComponentProps;
export declare class CustomFormatDialog extends React.PureComponent<ICustomFormatDialogProps, ICustomFormatDialogState> {
static defaultProps: Partial<ICustomFormatDialogProps>;
readonly state: Readonly<ICustomFormatDialogState>;
render(): JSX.Element;
private onApply;
private isApplyButtonDisabled;
private onFormatChange;
}
export {};