IKpiProps
Props of the Kpi component.
export interface IKpiProps extends IWithLoadingEvents<IRawExecuteProps>
Extends: IWithLoadingEvents<IRawExecuteProps>
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
(Optional) Specify an instance of analytical backend instance to work with. | |||
ComponentType<IErrorProps> | (Optional) Specify react component to render if execution fails. | ||
(Optional) Specify filters to apply during calculation | |||
ComponentType<ILoadingProps> | (Optional) Specify react component to render while the data is loading. | ||
string | (Optional) Specify locale to use for strings that the Kpi component may render (for instance when encountering errors). | ||
Specify measure whose value should be calculated and rendered. | |||
(Optional) Specify number separators to use when rendering (segment delimiters, decimal point character) | |||
string | (Optional) Specify workspace to work with. |
Property details
IKpiProps.backendproperty
Specify an instance of analytical backend instance to work with.
backend?: IAnalyticalBackend;
Remarks
Note: if you do not have a BackendProvider above in the component tree, then you MUST specify the backend.
IKpiProps.ErrorComponentproperty
Specify react component to render if execution fails.
ErrorComponent?: ComponentType<IErrorProps>;
IKpiProps.filtersproperty
Specify filters to apply during calculation
filters?: INullableFilter[];
IKpiProps.LoadingComponentproperty
Specify react component to render while the data is loading.
LoadingComponent?: ComponentType<ILoadingProps>;
IKpiProps.localeproperty
Specify locale to use for strings that the Kpi component may render (for instance when encountering errors).
locale?: string;
IKpiProps.measureproperty
Specify measure whose value should be calculated and rendered.
measure: IMeasure;
IKpiProps.separatorsproperty
Specify number separators to use when rendering (segment delimiters, decimal point character)
separators?: ISeparators;
IKpiProps.workspaceproperty
Specify workspace to work with.
workspace?: string;
Remarks
Note: if you do not have a WorkspaceProvider above in the component tree, then you MUST specify the workspace.