@gooddata/react-components
Version:
GoodData.UI - A powerful JavaScript library for building analytical applications
13 lines (12 loc) • 611 B
TypeScript
export declare type OpenAction = "click" | "hover";
export declare type MenuAlignment = ["bottom", "right"] | ["bottom", "left"] | ["top", "right"] | ["top", "left"] | ["right", "top"] | ["right", "bottom"] | ["left", "top"] | ["left", "bottom"];
export interface IOnOpenedChangeParams {
opened: boolean;
source: "TOGGLER_BUTTON_CLICK" | "OUTSIDE_CLICK" | "SCROLL" | "CLOSE_MENU_RENDER_PROP" | "HOVER_TIMEOUT";
}
export declare type OnOpenedChange = (params: IOnOpenedChangeParams) => void;
export interface IMenuPositionConfig {
alignment: MenuAlignment;
spacing: number;
offset: number;
}