on 12-13-2015 3:26 PM
Hello,
Im using sap.m.ColumnListItem to display few fields on screen.
is it possible to change the field "Wgbez" to be TextArea
and display the long text in 2 lines ?
the code is like this:
var oTemplate = new sap.m.ColumnListItem({ | |||
vAlign : "Middle", | |||
type : "{type}", | |||
cells : [ | |||
new sap.m.Text({ | |||
text : "{Wgbez}", | |||
wrapping : false, | |||
maxlines : "2" | |||
}), | |||
new sap.m.Text({ | |||
text : "{Maktx}", | |||
wrapping : false, | |||
maxlines : "2" | |||
}), | |||
new sap.m.Text({ | |||
text : "{Sernr}", | |||
textDirection : "LTR", | |||
wrapping : false | |||
}), new sap.m.Image({ | |||
src : "{imageUrl}", | |||
}), new sap.m.Text({ | |||
text : "{Num_days}", | |||
textDirection : "LTR", | |||
Width: "10px", | |||
wrapping : false | |||
}), new sap.m.Text({ | |||
text : "{Labst}", | |||
Width: "15rem", | |||
wrapping : false | |||
}), | |||
] | |||
}); |
Thank you,
Amir
Hi Amir,
Yes you can use TextArea.
Also text wrapping in two lines.
var oTemplate = new sap.m.ColumnListItem({
vAlign: "Middle",
type: "{type}",
cells: [
new sap.m.TextArea({
value: "{Wgbez}",
}),
new sap.m.Text({
text: "{Maktx}",
wrapping: true,
maxLines: "2"
}),
new sap.m.Text({
text: "{Sernr}",
textDirection: "LTR",
wrapping: true,
maxLines: "2"
}), new sap.m.Image({
src: "{imageUrl}",
}), new sap.m.Text({
text: "{Num_days}",
textDirection: "LTR",
maxLines: "2"
wrapping: true
}), new sap.m.Text({
text: "{Labst}",
Width: "15rem",
wrapping: true,
maxLines: "2"
}),
]
});
Regards,
Naren L Naik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.