XForms 中的树视图/导航
我想知道.. 给定 XML 数据结构,在 XForms 中是否可以(并且有些容易)进行树视图/导航?
如果可能的话,我在哪里可以找到一个非常好的示例(代码以及希望可以查看的工作表单)?
另外,您对于实现此功能有什么建议吗? (我是 XForms 的新手,到目前为止只了解基础知识)
非常感谢!
:D
I am wondering.. is tree view/navigation possible to do (and somewhat easily) in XForms given a XML data structure?
If it is possible, where can I find a really excellent example (code and hopefully a working form to view)?
Also, are there any tips you have for implementing this? (I'm new to XForms, and only know the basics so far)
Thanks so much!
:D
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不确定“树导航”到底是什么意思,但是如果您有一个在 XML 中任意嵌套的树状结构,并且希望将其作为树显示给最终用户,则可以使用 Orbeon Forms,您可以可以在
或
上使用appearance="xxforms:tree"
。例如,请参见:http://wiki.orbeon.com/forms/how- to/icons-tree
这将在您的网页上呈现为树,例如:
树屏幕截图 http://wiki.orbeon.com/forms/_/rsrc/1261447340941/操作方法/icons-tree/Orbeon%20Forms%20Example%20Applications%20-%20Tree%20Widget-1.png
I am not sure what you mean exactly by "tree navigation", but if you have a tree-like structure with arbitrary nesting in XML, and want to show it to end-users as a tree, you can if using Orbeon Forms, you can use the
appearance="xxforms:tree"
on a<xforms:select1>
or<xforms:select>
. See for instance:http://wiki.orbeon.com/forms/how-to/icons-tree
This will be rendered as a tree on you web page, e.g.:
Tree screenshot http://wiki.orbeon.com/forms/_/rsrc/1261447340941/how-to/icons-tree/Orbeon%20Forms%20Example%20Applications%20-%20Tree%20Widget-1.png
您是否看过http://en.wikibooks.org/wiki/XForms/Folding_Menus< /a> ??
-阿兰
Did you have a look at http://en.wikibooks.org/wiki/XForms/Folding_Menus ??
-Alain