@gooddata/react-components
Version:
GoodData.UI - A powerful JavaScript library for building analytical applications
30 lines (29 loc) • 1.11 kB
TypeScript
import { AFM, Execution } from "@gooddata/typings";
import * as React from "react";
import { IntlShape } from "react-intl";
import { IMenuAggregationClickConfig } from "../../../interfaces/PivotTable";
import { IOnOpenedChangeParams } from "../../menu/MenuSharedTypes";
export interface IColumnTotal {
type: AFM.TotalType;
attributes: string[];
}
export interface IAggregationsMenuProps {
intl: IntlShape;
isMenuOpened: boolean;
isMenuButtonVisible: boolean;
showSubmenu: boolean;
colId: string;
getExecutionResponse: () => Execution.IExecutionResponse;
getTotals: () => AFM.ITotalItem[];
getAfmFilters: () => AFM.CompatibilityFilter[];
onAggregationSelect: (clickConfig: IMenuAggregationClickConfig) => void;
onMenuOpenedChange: ({ opened, source }: IOnOpenedChangeParams) => void;
}
export default class AggregationsMenu extends React.Component<IAggregationsMenuProps> {
render(): JSX.Element;
private getColumnTotals;
private getTogglerClassNames;
private renderMenuItemContent;
private getItemClassNames;
private renderMainMenuItems;
}