# ConditionNode

Fields, allowed values, and APIs that use ConditionNode.

Canonical: https://grid.syidax.com/docs/types/ConditionNode/

<a id="definition"></a>

## Type definition

A question mark (?) marks an optional field; readonly marks a value you should not change directly. A union (|) accepts one of the listed forms. Functions are callbacks that Grid invokes at the relevant point.

```typescript
export type ConditionNode<TRow = unknown> = ConditionGroup<TRow> | ConditionLeaf<TRow>;
```

<a id="used-by"></a>

## APIs using this type

- [setConditionFilter](https://grid.syidax.com/docs/methods/setConditionFilter.md) — Applies an advanced AND/OR condition tree. null clears it; inspect results for invalid models.
- [getConditionFilter](https://grid.syidax.com/docs/methods/getConditionFilter.md) — Reads the current advanced condition tree or null.
- [conditionFilterChanged](https://grid.syidax.com/docs/events/conditionFilterChanged.md) — Emitted when the AND/OR condition tree changes. A null model means advanced conditions were cleared.

<a id="parents"></a>

## Contracts containing this type

- [ConditionGroup](https://grid.syidax.com/docs/types/ConditionGroup.md)
- [FilterSliceApplyResult](https://grid.syidax.com/docs/types/FilterSliceApplyResult.md)
- [SyGridEventMap](https://grid.syidax.com/docs/types/SyGridEventMap.md)
- [SyGridImperativeMethods](https://grid.syidax.com/docs/types/SyGridImperativeMethods.md)

<a id="related"></a>

## Related types

- [ConditionGroup](https://grid.syidax.com/docs/types/ConditionGroup.md)
- [ConditionLeaf](https://grid.syidax.com/docs/types/ConditionLeaf.md)
