Hi Sebastian,
That doesn't seem to work. I am doing something like :
var x = new QxTreeFile(name, icon);
x.setStyleProperty("fontWeight", "bold");
x.setLabel(x.getLabel());
That doesn't display the text in bold. Is there another way to do this ?
thanks a lot
Sebastian Werner wrote:
[EMAIL PROTECTED] schrieb:
Hi,
I was trying to build an application using qooxdoo and I need to
update the icons of the QxTreeFile (embedded inside a QxTree).
However, when I try to do a setIconURI(nodeName, "new ICON"), it
doesn't update the icon. Also, I was trying to make the labels of the
QxTreeFile bold and tried setStyleProperty("font-weight", "bold");
but it doesn't seem to work.
In JavaScript you must not use dashes inside your property names of
styles: "font-weight" -> "fontWeight". Change this and the style
change should work.
Is it possible to update the icon dynamically once the tree has been
built ? A work around would be to construct a new Tree everytime an
event occurs, but that would be very inefficient.
No, currently not. If you use the renderer branch, you can probably do
this later with an own appearance handling. But this things are not
already in CVS.
Regards,
Sebastian
Thanks,
Vipul
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through
log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel