Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9269

Re: How to add multiple button in a column of a table in sapui5?

$
0
0

Hi Robin,

 

 

Can you check the code please

 

 

  var oMLayout = new sap.ui.commons.layout.MatrixLayout({});

    var oButton_A = new sap.ui.commons.Button({text:"Assign Executives"});

    var oButton_D = new sap.ui.commons.Button({text:"Deny"});

   

    oMLayout.createRow(oButton_A,oButton_D);

 

oTable.addColumn(new sap.ui.table.Column({

  label: new sap.ui.commons.Label({text: "Confirmation"}),

  template: new sap.ui.commons.TextView(

  //{text:"{Confirmation}"}

  ).bindProperty("text","Confirmation",function(str){

        switch(str)

           {

        case '0' :

        return oMLayout;

        case '1' :

        return "Conformed";      

       

        }

        })

  }));

 

 

thanks & Regards

chitti babu


Viewing all articles
Browse latest Browse all 9269

Trending Articles



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