[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/admin](../../README) / [index](../README) / describeRuleTree

# Function: describeRuleTree()

> **describeRuleTree**(`node`, `filter?`): `string`

Defined in: [admin/src/table/Filter.ts:52](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/admin/src/table/Filter.ts#L52)

A short human summary of a rule tree, for the active-filter chips.

"Advanced filter: 3 rules" tells someone their list is narrowed and by roughly
how much; the builder itself shows the detail. One rule gets named outright,
since that is the common case and the label fits.

## Parameters

### node

[`QueryRule`](../type-aliases/QueryRule) \| `null`

### filter?

#### _constraints

[`Constraint`](../classes/Constraint)[]

## Returns

`string`
