Skip to main content

revealItem()

revealItem(el, keyOrLabel): Promise<HTMLElement | null>

Defined in: js-api/src/u2core/inspect.ts:64

Brings an item of the control owning el into view by key or label (see Control.revealItem); rejects naming the candidates when a label matches several.

Parameters​

ParameterType
elElement | null
keyOrLabelstring

Returns​

Promise<HTMLElement | null>

Example​

const row = await DG.U2.revealItem(el, 'Discovery');

See​

https://public.datagrok.ai/js/samples/ui/widgets/u2-status