Quantcast
Channel: SCN: Message List - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 8124

Re: AddRow() and createRow Difference in matrixLayout?

$
0
0

HI Ripu

 

Add Row

this method expects us to pass in a sap.ui.commons.layout.MatrixLayoutRow object and it will be added accordingly.

 

Create Row

this method does a little more. We can pass in a sap.ui.commons.layout.MatrixLayoutCell and it will add it to sap.ui.commons.layout.MatrixLayoutRow object and add to matrix. We can also pass in a sap.ui.core.Control (like list, button, etc) and it will add it to sap.ui.commons.layout.MatrixLayoutCell and then to a sap.ui.commons.layout.MatrixLayoutRow and and to matrix. Or we can also passing a string and it will append it to cell and row and add to matrix accordingly.

This is more of helper method, so to save us effort in instantiation sap.ui.commons.layout.MatrixLayoutCell and sap.ui.commons.layout.MatrixLayoutRow.

 

 

Hope this helps

-D


Viewing all articles
Browse latest Browse all 8124

Trending Articles



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