Hi all,
I'm trying to put a combo-box in a row within a list view. Here is what
I've come up with so far (I've extended QxHtml, not sure if that's the
right approach or not). Does anyone have any advice about whether I'm
doing this the right way or not? How do I create handlers for selection
changes? Thanks for any advice!
function QxListViewContentCellCombobox(vSelections) {
this.selections = new Array ();
QxHtml.call(this, "");
this.setSelectable(false);
};
QxListViewContentCellCombobox.extend(QxHtml,
"QxListViewContentCellCombobox");
QxListViewContentCellCombobox.addProperty({name:"selections",type:QxCons
t.TYPEOF_OBJECT});
QxListViewContentCellCombobox.changeProperty({ name : "appearance", type
: QxConst.TYPEOF_STRING, defaultValue :
"list-view-content-cell-combobox" });
QxListViewContentCellCombobox.empty = {
selections : QxConst.CORE_EMPTY
};
proto._modifySelections = function(propValue, propOldValue, propData) {
delete this.selections;
this.selections = propValue;
var vHtml = "<select>"; // onchange=" + ">";
for (var i = 0; i < this.selections.length; ++i) {
vHtml += "<option value=\"" + this.selections[i] + "\">" +
this.selections[i] + "</option>";
};
vHtml += "</select>";
this.set ( { html : vHtml } );
};
Cheers,
Craig
--
Craig L. Ching
Chief Product Architect
IBM Certified Specialist, MQSeries
IBM Certified Developer, MQSeries
MQSoftware, Inc.
(952) 345-8720
www.mqsoftware.com
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel