items()
items(
el,opts?):IItemsState|null
Defined in: js-api/src/u2core/inspect.ts:55
Items of the control owning el (the state's items), uncapped with all: true; null when it
lists none.
Parameters
| Parameter | Type |
|---|---|
el | Element | null |
opts? | { all?: boolean; } |
opts.all? | boolean |
Returns
IItemsState | null
Example
const keys = DG.U2.items(el, {all: true})?.list.map((item) => item.key);