Hey guys,
I wanna create an advanced XML View:
This is the code in the JS-View:
newsap.m.Page("page",{
title : "Test",
showNavButton : "true",
showFooter : "true",
customHeader:newsap.m.Bar({
contentLeft:[newsap.m.Button({
icon:"sap-icon://home",
tap:function(){app.back();}
})],
contentMiddle:[newsap.m.Label("title",{text:"{CategoryName}"
})]
}),
I started like this:
<core:View
controllerName="sap.ui.demo.myFiori.MeineRouteApp.controller.Master"
xmlns="sap.m"
xmlns:core="sap.ui.core" >
<Page
title="Test"
showNavButton = "true"
showFooter = "true"
customHeader = <Bar>
</Bar>
>
And thats the point I am struggling. How can I create the custumHeader?
Thanks + regards
Chris