Skip to main content

ClassnameCondition<S>

Defined in: packages/core/src/utils/deriveClassNames.ts:16

A classname applied only when when returns true for the current state.

key is used to look up both the standard classname and the corresponding controlClassnames entry. Set standardOnly when the standard class is conditional but no custom class corresponds to it.

Type Parameters

Type Parameter
S

Properties

key

key: "dragHandle" | "notToggle" | "rule" | "ruleGroup" | "shiftActions" | "undoRedoActions" | "disabled" | "value" | "valueSource" | "addGroup" | "addRule" | "cloneGroup" | "muted" | "removeGroup" | "operators" | "fields" | "valid" | "matchMode" | "matchThreshold" | "removeRule" | "combinators" | "cloneRule" | "lockRule" | "lockGroup" | "muteRule" | "muteGroup" | "queryBuilder" | "betweenRules" | "dndDragging" | "dndOver" | "dndCopy" | "dndGroup" | "dndDropNotAllowed" | "dndPreviewPosition" | "dndHidden" | "header" | "body" | "invalid" | "undoAction" | "redoAction" | "valueListItem" | "branches" | "hasSubQuery" | "loading" | "valueDateTimeRelative"

Defined in: packages/core/src/utils/deriveClassNames.ts:17


standardOnly?

optional standardOnly?: boolean

Defined in: packages/core/src/utils/deriveClassNames.ts:19


when

when: (state: S) => boolean | undefined

Defined in: packages/core/src/utils/deriveClassNames.ts:18

Parameters

ParameterType
stateS

Returns

boolean | undefined


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.