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

Re: How to add a button in the child node of the Tree Table?

$
0
0

Hi Aravindhan,

 

Try something like this:

var ttDesvios = new sap.ui.table.TreeTable();  var cbDesviacion = new sap.ui.commons.CheckBox();  ttDesvios.addColumn(new sap.ui.table.Column({  label: new sap.ui.commons.Label({text: "Col1"}),  template: new sap.ui.commons.Label({text: "Info"}),  width: "50px",  }));  ttDesvios.addColumn(new sap.ui.table.Column({  label: new sap.ui.commons.Label({text: "Action"}),  template: new sap.ui.commons.Button({text: "Delete"}).bindProperty("visible", "pathPropertyChild", function(value){          if(value .............){ return true;} //For child          else{ return false;} //For parent
}),  width: "160px",  }));

Regards

 

EDIT: Wrong paste code, that's better!


Viewing all articles
Browse latest Browse all 8990

Trending Articles



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