@gooddata/react-components
Version:
GoodData React Components
29 lines (28 loc) • 1.05 kB
TypeScript
/// <reference types="react" />
import * as React from 'react';
import { Afm } from '@gooddata/data-layer';
import { IEvents } from '../../interfaces/Events';
import { Requireable } from '../../proptypes/Kpi';
export { Requireable };
export declare type URIString = string;
export interface IKpiProps extends IEvents {
measure: URIString;
projectId: string;
filters?: Afm.IFilter[];
format?: string;
}
export declare class Kpi extends React.Component<IKpiProps, null> {
static defaultProps: Partial<IKpiProps>;
static propTypes: {
filters: Requireable<any>;
format: Requireable<any>;
measure: (object: any, key: string, componentName: string, ...rest: any[]) => Error;
projectId: (object: any, key: string, componentName: string, ...rest: any[]) => Error;
onError: Requireable<any>;
onLoadingChanged: Requireable<any>;
afterRender: Requireable<any>;
pushData: Requireable<any>;
};
getFormattedResult(result: any): string;
render(): JSX.Element;
}