getFirstOption()
Call Signature
getFirstOption<
Opt
>(arr?
:OptionGroup
<Opt
>[] |Opt
[]):null
|GetOptionIdentifierType
<Opt
>
Defined in: packages/react-querybuilder/src/utils/optGroupUtils.ts:293
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
null
| GetOptionIdentifierType
<Opt
>
Call Signature
getFirstOption<
Opt
>(arr?
:OptionGroup
<Opt
>[] |Opt
[]):null
|GetOptionIdentifierType
<Opt
>
Defined in: packages/react-querybuilder/src/utils/optGroupUtils.ts:296
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
null
| GetOptionIdentifierType
<Opt
>
Call Signature
getFirstOption<
Opt
>(arr?
:OptionGroup
<Opt
>[] |Opt
[]):null
|GetOptionIdentifierType
<Opt
>
Defined in: packages/react-querybuilder/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
null
| GetOptionIdentifierType
<Opt
>
API documentation is generated from the latest commit on the main
branch. It may be somewhat inconsistent with official releases of React Query Builder.