Is there any widget in Dojo similar to JPanel in Java

半腔热情 提交于 2019-12-24 14:09:38

问题


is there any widget in Dojo similar to JPanel in Java ( to load image , some text above and buttons at bottom ) or I need to use div ?


回答1:


Dijit (Dojo's widget toolkit) offers some container and layout widgets, such as BorderContainer which provides specific layout patterns, but Dijit generally doesn't try to wrap HTML concepts. If you just need simple controls, use HTML and CSS. Perhaps you should just be using DIVs here.

Dijit does provide a container widget for HTML called ContentPane, mostly for use in widget hierarchies or where ajax loading via href is required.




回答2:


I don't know what a jpanel is, but looking at http://www.google.co.uk/images?q=JPanel&um=1&ie=UTF-8&source=og&sa=N&hl=en&tab=wi&biw=1920&bih=1043 I'd suggest using a dijit.layout.BorderContainer

See http://download.dojotoolkit.org/release-1.6.0/dojo-release-1.6.0/dijit/tests/layout/test_BorderContainer_full.html



来源:https://stackoverflow.com/questions/5353528/is-there-any-widget-in-dojo-similar-to-jpanel-in-java

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!