Function: isSortRefSelectProps()
@kortexya/reasoninglayer / isSortRefSelectProps
Function: isSortRefSelectProps()
Section titled “Function: isSortRefSelectProps()”isSortRefSelectProps(
props):props is SortRefSelectProps
Defined in: src/utils/ui-props.ts:20
Narrow a descriptor node’s props to SortRefSelectProps.
Parameters
Section titled “Parameters”unknown
The props of a UIDescriptorDto.
Returns
Section titled “Returns”props is SortRefSelectProps
true when props carries a string sortName, valueKey: 'id' and labelKey: 'label'.
Example
Section titled “Example”const pickers = children.filter((c) => isSortRefSelectProps(c.props));