@univerjs/ui v0.5.0-beta.1 • Docs
Interface: IMenuSelectorItem<V, T>
Extends
IMenuItemBase
<V
>
Type Parameters
Type Parameter | Default type |
---|---|
V | MenuItemDefaultValueType |
T | undefined |
Properties
Property | Type | Description | Overrides | Inherited from | Defined in |
---|---|---|---|---|---|
activated$? | Observable <boolean > | If type is MenuItemType.BUTTON_SELECTOR , this determines if the button is activated. | - | - | submodules/univer/packages/ui/src/services/menu/menu.ts:115 |
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 |
selections? | IValueOption <T >[] | Observable <IValueOption <T >[]> | Options or IDs of registered components. | - | - | submodules/univer/packages/ui/src/services/menu/menu.ts:112 |
selectionsCommandId? | string | If this property is set, changing the value of the selection will trigger the command with this id, instead of IMenuItemBase.id or IMenuItemBase.commandId. At the same title, clicking the button will trigger IMenuItemBase.id or IMenuItemBase.commandId. | - | - | submodules/univer/packages/ui/src/services/menu/menu.ts:105 |
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 | SELECTOR | BUTTON_SELECTOR | SUBITEMS | - | IMenuItemBase.type | - | submodules/univer/packages/ui/src/services/menu/menu.ts:98 |
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 |