Skip to Content
author's profile photo Former Member
Former Member

How to add footer with few buttons in Eclipse Juno for SAPUI5 application

Hello ,

i have created an application in SAPUI5 with Eclipse Juno, now i want to add a footer with few buttons. i am sharing 2 images for your kind considerations , image 1 consist of what i have developed , image2 consist of what i want to design ?

image2.png (38.4 kB)
image1.jpg (184.9 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Nov 13, 2015 at 11:15 AM

    Pavan

    Please check this example code. it may be useful.

    XML Code

    <footer>
    <OverflowToolbar id="otbFooter">
    <ToolbarSpacer/>
    <Button type="Accept" text="Accept">
    <layoutData><OverflowToolbarLayoutData moveToOverflow="false" /></layoutData>
    </Button>
    <Button type="Reject" text="Reject">
    <layoutData><OverflowToolbarLayoutData moveToOverflow="false" /></layoutData>
    </Button>
    <OverflowToolbarButton text="Delete" icon="sap-icon://delete"/>
    <OverflowToolbarButton text="Edit" icon="sap-icon://edit"/>
    <OverflowToolbarButton text="Add" icon="sap-icon://add"/>
    <OverflowToolbarButton text="Favorite" icon="sap-icon://favorite"/>
    <OverflowToolbarButton text="Flag" icon="sap-icon://flag"/>

    </OverflowToolbar>
    </footer>


    JavaScript Code


    //create an emphasized button
    var oButton4 = new sap.ui.commons.Button({
    text : "Emphasized",
    style: sap.ui.commons.ButtonStyle.Emph,
    press : function() {alert('Alert from ' + oButton4.getText());}
    }).placeAt("sample4");

    //create an accept button
    var oButton5 = new sap.ui.commons.Button({
    text : "Accept",
    style: sap.ui.commons.ButtonStyle.Accept,
    press : function() {alert('Alert from ' + oButton5.getText());}
    }).placeAt("sample4");

    //create a reject button
    var oButton6 = new sap.ui.commons.Button({
    text : "Reject",
    style: sap.ui.commons.ButtonStyle.Reject,
    press : function() {alert('Alert from ' + oButton6.getText());}
    }).placeAt("sample4");

    Kindly let me know if you need any more information.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 13, 2015 at 11:25 AM

    Hi Pavan,

    Will this help? http://jsbin.com/suqugi/edit?html,js,output

    Regards,

    KA

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.