Sprotty
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Function.Find Arg Value

sprotty / findArgValue

Function: findArgValue()

findArgValue<T>(arg, key): undefined | T

Defined in: packages/sprotty/src/base/views/view.tsx:47

Searches for the property specified in key in the specified args, including its direct or indirect IRenderingArgs#parentArgs.

Type Parameters

T

T

Parameters

arg

the rendering arguments.

undefined | IViewArgs

key

string

the key to search for.

Returns

undefined | T

the found value or `undefined.