@univerjs/ui v0.4.2 • Docs
Interface: IMenuService
Breaking changes to IMenuService are expected in the next version. Use with caution. by
Jikkai
Deprecated
Properties
Property | Type | Defined in |
---|---|---|
menuChanged$ | Observable <void > | packages/ui/src/services/menu/menu.service.ts:37 (opens in a new tab) |
Methods
addMenuItem()
addMenuItem(item, config): IDisposable
Parameters
Parameter | Type |
---|---|
item | IMenuItem |
config | MenuConfig |
Returns
Deprecated
Defined in
packages/ui/src/services/menu/menu.service.ts:40 (opens in a new tab)
getMenuItem()
getMenuItem(id): null | IMenuItem
Parameters
Parameter | Type |
---|---|
id | string |
Returns
null
| IMenuItem
Deprecated
Defined in
packages/ui/src/services/menu/menu.service.ts:49 (opens in a new tab)
getMenuItems()
getMenuItems(position): IDisplayMenuItem<IMenuItem>[]
Parameters
Parameter | Type |
---|---|
position | string |
Returns
Deprecated
Defined in
packages/ui/src/services/menu/menu.service.ts:47 (opens in a new tab)
setMenuItem()
setMenuItem(item): void
Parameters
Parameter | Type |
---|---|
item | IMenuItem |
Returns
void
Deprecated
Defined in
packages/ui/src/services/menu/menu.service.ts:43 (opens in a new tab)