Alexander Steitz wrote:
Hi skar,
On Monday 16 November 2009 skar wrote:
Is there any way to listen to change in the readonly property of a
textarea?
Unfortunately not. You have to subclass the textarea class and add your own
change event to it.
--snip--
properties :
{
"readonly":
{
refine: true,
event: "changeReadOnly"
}
}
--snip--
I get the error when I tried the idea:
Class NewTextArea could not refine property: readOnly! Key: event
could not be refined!
throw new Error("Class " +...y: " + key + " could not be
refined!");\nClass.js (line 1228)
My code is:
qx.Class.define("NewTextArea",
{
extend : qx.ui.form.TextArea,
properties :
{ //custom class which raises this event on change of read only
"readOnly":
{
refine: true,
event: "changeReadOnly"
}
}
});
cheers,
skar.
--
--
The life so short, the craft so long to learn.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel