@univerjs/ui v0.5.0-beta.1 • Docs
Interface: IMenuButtonItem<V>
Extends
IMenuItemBase
<V
>
Type Parameters
Type Parameter | Default type |
---|---|
V | undefined |
Properties
Property | Type | Description | Overrides | Inherited from | Defined in |
---|---|---|---|---|---|
activated$? | Observable <boolean > | - | - | - | submodules/univer/packages/ui/src/services/menu/menu.ts:71 |
commandId? | string | If two menus reuse the same command (e.g. copy & paste command). They should have the same command id and different ids. | - | IMenuItemBase.commandId | submodules/univer/packages/ui/src/services/menu/menu.ts:41 |
description? | string | - | - | IMenuItemBase.description | submodules/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.icon | submodules/univer/packages/ui/src/services/menu/menu.ts:46 |
id | string | ID of the menu item. Normally it should be the same as the ID of the command that it would invoke. | - | IMenuItemBase.id | submodules/univer/packages/ui/src/services/menu/menu.ts:35 |
label? | string | { hoverable : boolean ; name : string ; props : Record <string , any >; } | Custom label component id. | - | IMenuItemBase.label | submodules/univer/packages/ui/src/services/menu/menu.ts:54 |
subId? | string | - | - | IMenuItemBase.subId | submodules/univer/packages/ui/src/services/menu/menu.ts:43 |
title? | string | - | - | IMenuItemBase.title | submodules/univer/packages/ui/src/services/menu/menu.ts:44 |
tooltip? | string | - | - | IMenuItemBase.tooltip | submodules/univer/packages/ui/src/services/menu/menu.ts:47 |
type | BUTTON | - | 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 |