pathIsDisabledByPaths()
pathIsDisabledByPaths(
path:Path,disabledPaths?:Path[]):boolean
Defined in: packages/core/src/utils/pathUtils.ts:147
Determines if the rule or group at the specified path is disabled by disabledPaths—the array
form of the QueryBuilder disabled prop, which disables nodes by position rather than by a
disabled property on the node itself. A path is disabled if it appears in disabledPaths or
descends from a path that does.
Parameters
| Parameter | Type | Default value |
|---|---|---|
path | Path | undefined |
disabledPaths | Path[] | [] |
Returns
boolean
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.