Hi,
I am trying to learn about list by doing some examples.While practicing i got some bug in my code.
I am expecting ouput of sap.m.Text i.e name john.But i am not getting that name in my page.Please fix the thing in my code and Please provide some example to understand about list completely
##########################################################################
sap.ui.jsview("list.lis", {
getControllerName : function() {
return "list.lis";
},
createContent : function(oController) {
var btn = new sap.m.Button({text : "Hii",
press : function(){alert("Hii");}});
var col = new sap.m.Column({
//styleClass : "name",
hAlign : "Right",
header : new sap.m.Label({text : "Name"}) ,
template: new sap.m.Text({text: "John"})
});
var lis = new sap.m.List({
headerText : "List",
items : [new sap.m.StandardListItem({
title : "Terry Clark",
description : "SIP Telephone Set",
info: "Today",
//infoState: "Success",
icon: "",
type: "Navigation",
unread : true,
counter: 1,
//press: handlePress
})],
visible : true,
//width : "1000px",
columns : [col]
});
var page = new sap.m.Page({
title : "Head",
content: [lis]
});
return (page);
}
});
.
PFA for output which i got