如何预览Dojo/Dijit主题?
我买了 Matthew Russell 写的 O'Reilly Dojo 书。它说“在您的工具包结账中,您可以在 dijit/themes/themeTester.html 找到主题测试器。
我从这里下载了 1.3.2:http://dojotoolkit.com/downloads 并且找不到这样的文件。我希望看到这三个主题中的每一个都付诸实践。 我怎样才能做到这一点?
谢谢, 尼尔·沃尔特斯
I bought the O'Reilly Dojo book by Matthew Russell. It says "in your toolkit checkout, you can find a theme tester at dijit/themes/themeTester.html.
I downloaded 1.3.2 from here: http://dojotoolkit.com/downloads
and cannot find such a file. I would like to see each of the three themes in action.
How can I do that?
Thanks,
Neal Walters
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
themeTester 不在发布(缩小)版本中。您需要下载 *-src 的。例如这个: http:// /download.dojotoolkit.org/release-1.3.2/dojo-release-1.3.2-src.tar.gz。这些可以通过下载页面上的“更多下载”链接获得。
除了 Wahnfireden 所说的之外,您还可以查看Dojocampus 文档。它嵌入了示例,您可以在其中动态更改应用于各个小部件的主题(以及更改所使用的 dojo 版本)。例如, dijit.form.Button 有很多示例可供查看。
themeTester isn't in the release (minified) version. You need to download the *-src ones. For example this one: http://download.dojotoolkit.org/release-1.3.2/dojo-release-1.3.2-src.tar.gz. These are available off of the 'More downloads' link on the downloads page.
Besides what Wahnfireden said, you can also check out Dojocampus docs. It has examples embedded where you can dynamically change the theme applied to individual widgets (as well as change the version of dojo that is used). For example, dijit.form.Button has a bunch of examples to look at.
Dijit 主题测试器
另一个测试 Dijit 和 DojoX 的好地方widgets就是看他们的测试。 Dijit 测试位于此处,DojoX 测试位于每个单独的文件夹此处。
请注意,这些链接指向夜间构建,而不是 1.3.2,因此可能存在细微差异。就我个人而言,我建议每晚使用道场。
Dijit Theme Tester
Another great place to test out Dijit and DojoX widgets is to look at their tests. Dijit tests are here, and DojoX tests are within each individual folder here.
Note that these links are to the nightly build, not 1.3.2, so there may be small differences. I'd suggest using the Dojo nightly though, personally.