IInsightMenuSubmenu
Beta API. Mostly stable, but details may change in a minor release, outside SemVer. See API maturity.
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. See API maturity.
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. See API maturity.
disabled?: boolean;
IInsightMenuSubmenu.iconpropertyBeta
Beta API. Mostly stable, but details may change in a minor release, outside SemVer. See API maturity.
icon?: ReactElement | string;
IInsightMenuSubmenu.itemIdpropertyBeta
Beta API. Mostly stable, but details may change in a minor release, outside SemVer. See API maturity.
itemId: string;
IInsightMenuSubmenu.itemNamepropertyBeta
Beta API. Mostly stable, but details may change in a minor release, outside SemVer. See API maturity.
itemName: string;
IInsightMenuSubmenu.itemspropertyBeta
Beta API. Mostly stable, but details may change in a minor release, outside SemVer. See API maturity.
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. See API maturity.
onClick?: (e: MouseEvent) => void;
IInsightMenuSubmenu.renderSubmenuComponentOnlypropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
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. See API maturity.
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. See API maturity.
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. See API maturity.
type: "submenu";