handler TestEglMobile type RUIhandler{initialUI = [ View, List ],
onConstructionFunction = start,
cssFile = "css/com.emoser.markt.rpt.egl.mob.css",
title = "TestEglMobile"}
View DojoMobileView{
selected = true, headerTitle = "My View",
/*backText = "Back", backView = */
children = [
]
};
List DojoMobileList{
style = DojoMobileLib.LIST_STYLE_ROUNDED_RECTANGLE,
children = [
new DojoMobileListItem{ text = "List Item 1",
imagePath = "dojo/mobile/images/i-icon-1.png",
onClick ::= null_onClick,
id = "ITEM1ID" }
]
};
function start()
end
function null_onClick(event Event in)
syslib.writeStdout("getID: " + event.widget.getID());
end
end
Output:
getID: dojox_mobile_ListItem_1
Is this an error