Skip to content

Commit 139c291

Browse files
committed
Update ex2/readme.md
1 parent b4716b6 commit 139c291

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ex2/readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export default JSONFilterBarDelegate
4444
To add a FilterBar to the XML view, we can use the [`sap.ui.mdc.FilterBar`](https://sdk.openui5.org/api/sap.ui.mdc.FilterBar) control. Setting the previously created delegate makes sure, that the FilterBar can deal with the specific JSON data we are facing. Place the FilterBar inside of the DynamicPageHeader.
4545
###### view/Mountains.view.xml
4646
```xml
47+
<f:DynamicPageHeader pinnable="true">
4748
<mdc:FilterBar id="filterbar" delegate="{name: 'mdc/tutorial/delegate/JSONFilterBarDelegate'}"
4849
p13nMode = "Item,Value">
4950
<mdc:basicSearchField>
@@ -65,6 +66,7 @@ To add a FilterBar to the XML view, we can use the [`sap.ui.mdc.FilterBar`](http
6566

6667
</mdc:dependents>
6768
</mdc:FilterBar>
69+
</f:DynamicPageHeader>
6870
```
6971

7072
>⚠️ Like columns in the MDC table, the filter items are used for UI adaptation functionalities. Hence, do not change them, manually or dynamically, or use bindings to prevent undesired effects.

0 commit comments

Comments
 (0)