API Reference
@univerjs
@univerjs/ui
functions
Mergemenuconfigs

@univerjs/ui v0.4.2Docs


Function: mergeMenuConfigs()

function mergeMenuConfigs<T>(baseConfig, additionalConfig): T

Type Parameters

Type ParameterDefault type
TMenuConfig

Parameters

ParameterType
baseConfigT
additionalConfignull | Partial<Omit<IMenuItem, | "id" | "subId" | "value$" | "hidden$" | "disabled$" | "activated$" | "icon$"> & { activated: boolean; disabled: boolean; hidden: boolean; }>

Returns

T

Defined in

packages/ui/src/common/menu-merge-configs.ts:20 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.