Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

How to align button e.g. in a panel?

$
0
0

Hello!

 

I got this problem. I've created a panel and in the header there are some buttons. The coding is:

 

     //Create a panel instance

        var oPanel = new sap.ui.commons.Panel({width: "350px"});

 

     //Settings of the panel

        oPanel.setTitle(new sap.ui.commons.Title({text: "This is the panel"}));

        oPanel.setHeight("76px");

        oPanel.setWidth("100%");

 

     //Add some buttons to the panel header

         oPanel.addButton(new sap.ui.commons.Button({text: 'Help'}));

 

How can I align the button to the right side of the panel header? If it's not possible, what are other possibilities?

 

Thanks in advance!


Viewing all articles
Browse latest Browse all 3523

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>