IInsightMenuSubmenu
Beta API. Mostly stable, but details may change in a minor release, outside SemVer.
export interface IInsightMenuSubmenu
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
string | (BETA) (Optional) Additional class names to be applied to the item. | ||
boolean | (BETA) (Optional) | ||
ReactElement | string | (BETA) (Optional) | ||
string | (BETA) | ||
string | (BETA) | ||
(BETA) (Optional) The items to render for the submenu. | |||
(e: MouseEvent) => void | (BETA) (Optional) | ||
boolean | (ALPHA) (Optional) Should the submenu component be rendered only? If so, it won’t be wrapped inside the default container and the default header won’t be rendered. | ||
ComponentType<IInsightMenuSubmenuComponentProps> | (BETA) (Optional) Define either the component to render for the submenu or the items to render by default submenu. If not provided, the default submenu component will be used. | ||
string | ReactNode | (BETA) (Optional) If specified, the value is shown on hover of the item as a tooltip. | ||
“submenu” | (BETA) |
Property details
IInsightMenuSubmenu.classNamepropertyBeta
Beta API. Mostly stable, but details may change in a minor release, outside SemVer.
Additional class names to be applied to the item.
className?: string;
IInsightMenuSubmenu.disabledpropertyBeta
Beta API. Mostly stable, but details may change in a minor release, outside SemVer.
disabled?: boolean;
IInsightMenuSubmenu.iconpropertyBeta
Beta API. Mostly stable, but details may change in a minor release, outside SemVer.
icon?: ReactElement | string;
IInsightMenuSubmenu.itemIdpropertyBeta
Beta API. Mostly stable, but details may change in a minor release, outside SemVer.
itemId: string;
IInsightMenuSubmenu.itemNamepropertyBeta
Beta API. Mostly stable, but details may change in a minor release, outside SemVer.
itemName: string;
IInsightMenuSubmenu.itemspropertyBeta
Beta API. Mostly stable, but details may change in a minor release, outside SemVer.
The items to render for the submenu.
items?: IInsightMenuItem[];
IInsightMenuSubmenu.onClickpropertyBeta
Beta API. Mostly stable, but details may change in a minor release, outside SemVer.
onClick?: (e: MouseEvent) => void;
IInsightMenuSubmenu.renderSubmenuComponentOnlypropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production.
Should the submenu component be rendered only? If so, it won’t be wrapped inside the default container and the default header won’t be rendered.
renderSubmenuComponentOnly?: boolean;
IInsightMenuSubmenu.SubmenuComponentpropertyBeta
Beta API. Mostly stable, but details may change in a minor release, outside SemVer.
Define either the component to render for the submenu or the items to render by default submenu. If not provided, the default submenu component will be used.
SubmenuComponent?: ComponentType<IInsightMenuSubmenuComponentProps>;
IInsightMenuSubmenu.tooltippropertyBeta
Beta API. Mostly stable, but details may change in a minor release, outside SemVer.
If specified, the value is shown on hover of the item as a tooltip.
tooltip?: string | ReactNode;
IInsightMenuSubmenu.typepropertyBeta
Beta API. Mostly stable, but details may change in a minor release, outside SemVer.
type: "submenu";