English 中文(简体)
Quoxdoo - 如何将图标绑绑到虚拟树的某个项目上
原标题:Qooxdoo -- How to bind icon to an item of a VirtualTree
  • 时间:2012-05-24 17:34:32
  •  标签:
  • qooxdoo

我正使用虚拟树枝作为绘图应用程序的图层选择器, 我正试图在一个图层活动时显示“ Layer” 或“ 文件” 或“ 文件” 显示绿色图标, 如果不是, 则显示灰色图标 。

你能......

  1. Set the icon of a selection? or
  2. Bind an icon of an item of a VirtualTree to a boolean property of an array?

我看到了一个属性,用于:图标选项,它使用地图和引用 qx. data。 SingleValueBinding, 但如何实际执行它正在让我立下立木。 我的树正在被使用 :

var store = new qx.data.store.Json(url);
store.bind("model", tree, "model");

我试过了:

tree.setIconPath("icon");

但它要求我对 JSON 文件的每个元素都有一个图标属性, 以显示文件夹/ 文件, 并且不允许多重( 开/ 关闭) 能力 。

有什么建议吗?

最佳回答

查看 < a href=" "http://demo.qooxdoo.org/ purm/demobrowser/index.html#viltual~Tree_Dynamic.html" rel=“nofollow”>viltual 树演示 。使用设置Iconoption, 您可以指定一个转换器, 在决定要设置的图标类型时将其他数据考虑在内 。

问题回答

暂无回答




相关问题
qx.ui.table.Table hangs my browser

I have a strange bug. I create a qx.ui.table.Table and if not all specified columns fit into window (horizontal scroll appear) my browsers (firefox 3.5.6 and chrome 5.0.344) hangs. If i just set width ...

qx.io.remote.Request: post parameters in body and url

when creating and sending an http POST request like this... var req = new qx.io.remote.Request("/test","POST"); req.setParameter("pi", "3.1415"); req.setParameter("color", "...

Trouble Getting Data from a Webservice using Qooxdoo

My capstone team has decided to use Qooxdoo as the front end for our project. We re developing apps for OpenFlow controllers using NOX, so we re using the NOX webservices framework. I m having trouble ...

How best to share a QooXDoo using Git?

I m developing a little project with QooXDoo and want to share the source with some friends. Should I just check in the whole project folder?

Table decoration in Qooxdoo

Is it possible to set the background color of one Row in a Table? I need to highlight a row when a condition applies. Something to the effect of < tr font="...">...< /tr> where I can ...

parameter passing to a standalone qooxdoo application

How can I pass parameters to a stand alone qooxdoo applicatoin? Thanks in advance :) update: I was thinking of passing URL parameters; something like GET/POST params when an html FORM is submitted. ...

testing source application in qooxdoo

I began to use Qooxdoo the last month so i ve got very little experience in its usage. I need to create a test application like the testrunner on the Qooxdoo website, but i need to do tests inside my ...

热门标签