Skip to content

Function: isSortRefSelectProps()

@kortexya/reasoninglayer


@kortexya/reasoninglayer / isSortRefSelectProps

isSortRefSelectProps(props): props is SortRefSelectProps

Defined in: src/utils/ui-props.ts:20

Narrow a descriptor node’s props to SortRefSelectProps.

unknown

The props of a UIDescriptorDto.

props is SortRefSelectProps

true when props carries a string sortName, valueKey: 'id' and labelKey: 'label'.

const pickers = children.filter((c) => isSortRefSelectProps(c.props));