@univerjs/ui v0.5.0-beta.1Docs


Interface: IMenuButtonItem<V>

Extends

  • IMenuItemBase<V>

Type Parameters

Type ParameterDefault type
Vundefined

Properties

PropertyTypeDescriptionOverridesInherited fromDefined in
activated$?Observable<boolean>---submodules/univer/packages/ui/src/services/menu/menu.ts:71
commandId?stringIf two menus reuse the same command (e.g. copy & paste command). They should have the same command id and different ids.-IMenuItemBase.commandIdsubmodules/univer/packages/ui/src/services/menu/menu.ts:41
description?string--IMenuItemBase.descriptionsubmodules/univer/packages/ui/src/services/menu/menu.ts:45
disabled$?Observable<boolean>--IMenuItemBase.disabled$submodules/univer/packages/ui/src/services/menu/menu.ts:63
hidden$?Observable<boolean>--IMenuItemBase.hidden$submodules/univer/packages/ui/src/services/menu/menu.ts:62
icon?string | Observable<string>--IMenuItemBase.iconsubmodules/univer/packages/ui/src/services/menu/menu.ts:46
idstringID of the menu item. Normally it should be the same as the ID of the command that it would invoke.-IMenuItemBase.idsubmodules/univer/packages/ui/src/services/menu/menu.ts:35
label?string | { hoverable: boolean; name: string; props: Record<string, any>; }Custom label component id.-IMenuItemBase.labelsubmodules/univer/packages/ui/src/services/menu/menu.ts:54
subId?string--IMenuItemBase.subIdsubmodules/univer/packages/ui/src/services/menu/menu.ts:43
title?string--IMenuItemBase.titlesubmodules/univer/packages/ui/src/services/menu/menu.ts:44
tooltip?string--IMenuItemBase.tooltipsubmodules/univer/packages/ui/src/services/menu/menu.ts:47
typeBUTTON-IMenuItemBase.type-submodules/univer/packages/ui/src/services/menu/menu.ts:69
value$?Observable<V>On observable value that should emit the value of the corresponding selection component.-IMenuItemBase.value$submodules/univer/packages/ui/src/services/menu/menu.ts:65