Skip to content

Commit 65d3606

Browse files
committed
Update declaration ref
1 parent 6a1fb28 commit 65d3606

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

content/terms/reference/declaration.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,18 @@ As an array of those:
139139

140140
{{< refItem
141141
name="filter"
142-
type="array of strings"
143-
description="Array of filter function names to apply. Function will be executed in the order of the array. See the [Filters]({{< relref \"terms/reference/filters\" >}}) section for more information."
144-
example="[\"filterName1\", \"filterName2\"]"
145-
/>}}
142+
type="array of strings or objects"
143+
description="Array of filter functions to apply. Each item can be either a string (function name) or an object (function name as key, parameters as value). Functions will be executed in the order of the array. See the [Filters]({{< relref \"terms/reference/~~filters\" >}}) section for more information."
144+
>}}
145+
```json
146+
"filter": [
147+
"filterName1",
148+
{
149+
"filterName2": "params"
150+
}
151+
]
152+
```
153+
{{< /refItem >}}
146154

147155
{{< refItem
148156
name="combine"

0 commit comments

Comments
 (0)