@univerjssheets-uiindexfunctionsDerivestatefromactivesheet$

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


Function: deriveStateFromActiveSheet$()

function deriveStateFromActiveSheet$<T>(
   univerInstanceService, 
   defaultValue, 
callback): Observable<T>

Type Parameters

Type Parameter
T

Parameters

ParameterType
univerInstanceServiceIUniverInstanceService
defaultValueT
callback(active) => Observable<T>

Returns

Observable<T>

Defined in

submodules/univer/packages/sheets-ui/src/controllers/menu/menu-util.ts:39