on 03-14-2018 10:01 AM
Can anyone explain me why the below code works even though aggregation 'Content ' is not used inside icontabfilter. In the below code we are directly adding an image control inside icontabfilter. But ideally we should use the aggregation content tag and inside that add the control.
<mvc:View
displayBlock="true"
xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m"
controllerName="opensap.myapp.controller.App">
<App>
<pages>
<Page title="openSAP - Developing with SAPUI5">
<content>
<IconTabBar
id="idTopLevelIconTabBar">
<items>
<IconTabFilter id="start" text="1ST tab">
<Image
src="https://upload.wikimedia.org/wikipedia/commons/thumb/8/86/Wikipedia_Hello_World_Graphic.svg/2000px-Wikipedia_Hello_World_Graphic.svg.png"
height="600px"/>
</IconTabFilter>
</items>
</IconTabBar>
</content>
</Page>
</pages>
</App>
</mvc:View>
Now if we check sap.m.iconfilter in sapui5 demokit then we have an aggregation called content so ideally the code should be..
IconTabFilter id="start" text="1ST tab">
<Content>
<Image
src="https://upload.wikimedia.org/wikipedia/commons/thumb/8/86/Wikipedia_Hello_World_Graphic.svg/2000px-Wikipedia_Hello_World_Graphic.svg.png"
height="600px"/>
</content>
</IconTabFilter>
Why aggregation content is not used inside icontanfilter and directly image control is used?
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.