Is there a way to hide the page header in a custom Lightning App shown below ?
This banner is not available in the Edit page section.I have selected ‘One region Template’ and added just one Lightning component.
But after saving the header comes by default which I want to remove.
PS: I was able to remove the header by putting the display as none as shown below. But don’t know which standard class to refer in css
Answer
In your lightning component bundle, allow Lightning Tab as a target:
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<targets>
<target>lightning__Tab</target>
</targets>
</LightningComponentBundle>
Go to Setup > Tabs > Lightning Component Tabs
. Click New
, then choose your component.
Use your newly created Lightning Component Tabs
instead of the Lightning Page Tabs
.
Attribution
Source : Link , Question Author : Brav , Answer Author : ipavlic