我制作了自定义listitem视图(基于http://news.qooxdoo.org/tutorial-part-4-2-custom-widgets-4).
我对此列表中的选择项有疑问.始终选择第一个元素(无论列表中哪个元素我都会点击).
我该怎么做才能解决我的问题?
这是我的列表项小部件:
qx.Class.define("project.MyView", {
extend : qx.ui.core.Widget,
include : [qx.ui.form.MModelProperty],
construct : function() {
this.base(arguments);
var layout = new qx.ui.layout.Grid(4, 2);
layout.setColumnFlex(1, 1);
this._setLayout(layout);
this._createChildControl("icon");
this._createChildControl("date");
this._createChildControl("description");
},
properties : {
appearance : {
refine : true,
init : "listitem"
},
icon : {
check : "String",
apply : "_applyIcon",
nullable : true
},
date : {
check : "String",
apply : "_applyDate",
nullable : true
},
description : {
check : "String",
apply : "_applyDescription", …