Skip to Content

Make a button appear as type Accept

Hi,

I am currently doing extensions for a Standard SAPUI5 MyInbox App. I am able to add a button to the bottom right hand corner as shown below. Does anyone know how to make it look like an Accept button (Green color).

extHookChangeFooterButtons : function(oButtonList) {

if (oButtonList.aButtonList) {

     oButtonList.aButtonList.unshift({

     sBtnTxt : "Submit",

     onBtnPressed : function(event) {

          that.showItemApprovalDialog();

          }

          });

     }

}

Thanks,

Murali

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 20, 2015 at 06:21 AM

    Hi Murali,

    You should use type="Accept",

    Will this heelp?  JS Bin - Collaborative JavaScript Debugging

    Thanks,

    Karthik A

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 20, 2015 at 06:04 AM

    Hi,

    give style attribute  sap.ui.commons.ButtonStyle.Accept

    Regards

    Add comment
    10|10000 characters needed characters exceeded