Skip to main content

FullOption<N>

Defined in: packages/react-querybuilder/src/types/options.ts:82

A generic Option requiring both name and value properties. Props that extend OptionList accept BaseOption, but corresponding props sent to subcomponents will always be translated to this type first to ensure both name and value are available.

NOTE: Do not extend from this type directly. Use BaseFullOption (optionally wrapped in WithUnknownIndex) instead, otherwise the unknown index property will cause issues. See Option and ValueOption for examples.

Extends

Extended by

Type Parameters

Type ParameterDefault type
N extends stringstring

Indexable

[key: string]: unknown

Properties

disabled?

optional disabled: boolean

Defined in: packages/react-querybuilder/src/types/options.ts:34

Inherited from

WithUnknownIndex.disabled


label

label: string

Defined in: packages/react-querybuilder/src/types/options.ts:33

Inherited from

WithUnknownIndex.label


name

name: N

Defined in: packages/react-querybuilder/src/types/options.ts:31

Inherited from

WithUnknownIndex.name


value

value: N

Defined in: packages/react-querybuilder/src/types/options.ts:32

Inherited from

WithUnknownIndex.value


caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.