5
그 코드가 있습니다. (https://openui5.hana.ondemand.com/#test-resources/sap/ui/layout/demokit/Grid.html)layout.Grid를 XML보기에서 사용하는 방법 SAPUI5?
var oGrid1 = new sap.ui.layout.Grid({
hSpacing: 1,
vSpacing: 1,
content: [
new sap.ui.commons.TextView({
text : 'Text spanned over 4 cols on large, 6 cols on medium, and 12 cols on small screens.',
layoutData : new sap.ui.layout.GridData({
span : "L4 M6 S12"
})
}),
new sap.ui.commons.TextView({
text : 'Text spanned over 4 cols on large, 6 cols on medium, and 12 cols on small screens.',
layoutData : new sap.ui.layout.GridData({
span : "L4 M6 S12"
})
}),
new sap.ui.commons.TextView({
text : 'Text spanned over 4 cols on large, 6 cols on medium, and 12 cols on small screens.',
layoutData : new sap.ui.layout.GridData({
span : "L4 M6 S12"
})
})
]
});
oGrid1.placeAt("sample1");
그리고 XML 표기법에 다음과 같은 일을 사용하는 방법을 이해할 수 없습니다.
layoutData : new sap.ui.layout.GridData({span : "L4 M6 S12"})