I tried to insert space between two controls inside MatrixLayoutCell in sapui5. However, it is giving and error. My code is :
var control = new sap.m.Input("id_mtr_kra_rating_val", {
value : "Something",
width:"70px"
});
var control3= new sap.ui.core.HTML("htmlspace",{
content:" "
});
var control2 = new sap.m.Label("percentlabel",{
text:"labelText"
});
var cell= new sap.ui.commons.layout.MatrixLayoutCell("idcellmtr",{
content:[control1,control2,control3]
});
matrixLayout.createRow(null,cell,null );
It is giving an error : Uncaught Error: Syntax error, unrecognized expression: Is this the right way to do this? If not, please help me with the solution. Thanks.
matrixLayout.createRow(createRow(null,cell,null );where you have an unrecognized expressioncreateRow, probably a copy-paste errormatrixLayout.createRow(createRow(null,cell,null );where it has a secondary functioncreateRowand you are missing a closing)in the end