getValues
Commons
stable
Extracts the value (or index fallback) of each IGroupItem whose id appears in the provided ids array. Used internally by group-selection composables to translate selection identifiers back to model values.
API
Signature
Full TypeScript signature sourced from the util file.
API
Parameters
Input parameters accepted by this util.
- itemsrequiredUnwrapRef<Array<IGroupItem>>
- The flat list of group items to search. Each item must expose an id and an optional value field.
- idsrequiredArray<any>
- The selection identifiers to look up. Order is preserved in the output.
API
Return value
The value returned by this util.
- An array of resolved values (item.value when set, otherwise the item index). Items whose id is not found in the list are silently skipped.
Usage
Examples
Ready-to-paste usage snippets.
Resolve ids to values