getFirstOption()
Call Signature
getFirstOption<
Opt>(arr?:OptionGroup<Opt>[] |Opt[]):GetOptionIdentifierType<Opt> |null
Defined in: packages/core/src/utils/optGroupUtils.ts:299
Gets the first option from an OptionList.
Type Parameters
| Type Parameter |
|---|
Opt extends {[key: string]: unknown; disabled?: boolean; label: string; name: string; value: string; } |
Parameters
| Parameter | Type |
|---|---|
arr? | OptionGroup<Opt>[] | Opt[] |
Returns
GetOptionIdentifierType<Opt> | null
Call Signature
getFirstOption<
Opt>(arr?:OptionGroup<Opt>[] |Opt[]):GetOptionIdentifierType<Opt> |null
Defined in: packages/core/src/utils/optGroupUtils.ts:302
Gets the first option from an OptionList.
Type Parameters
| Type Parameter |
|---|
Opt extends {[key: string]: unknown; disabled?: boolean; label: string; name?: string; value: string; } |
Parameters
| Parameter | Type |
|---|---|
arr? | OptionGroup<Opt>[] | Opt[] |
Returns
GetOptionIdentifierType<Opt> | null
Call Signature
getFirstOption<
Opt>(arr?:OptionGroup<Opt>[] |Opt[]):GetOptionIdentifierType<Opt> |null
Defined in: packages/core/src/utils/optGroupUtils.ts:305
Gets the first option from an OptionList.
Type Parameters
| Type Parameter |
|---|
Opt extends {[key: string]: unknown; disabled?: boolean; label: string; name: string; value?: string; } |
Parameters
| Parameter | Type |
|---|---|
arr? | OptionGroup<Opt>[] | Opt[] |
Returns
GetOptionIdentifierType<Opt> | null
API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.