on 09-08-2014 3:58 PM
Hello Experts,
I have a Panel and all I want is I do not need the header in 2 Panels in my application. For that I have used the below line in onAfterRendering method in controller.
onAfterRendering: function() {
$('#oPanelDates-hdr').css({"background": "none"});
$('#oPanelAddRowSave-hdr').css({"background": "none"});
}
The 1st time the application loads, this looks perfectly fine. But as soon as I destroy the Panel content, I have the header back.
Which hook method do I use as I want this to be permanent despite navigation, or any changes made in the Panel.
I have tried the above piece in onBeforeShow() as well
Thanks & Regards,
Archana
Do you need to use JavaScript to update the style? Can't you just override the CSS element.
.sapUiPanelHdrEmph {
background: none;
}
Regards,
Jason
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use the addStyleClass method to set a custom style.
oPanel.addStyleClass("RemovePanel");
.RemovePanel .sapUiPanelHdr {
background: none;
}
Here's an example:
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
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.