Where can I find a list of icon images for the dojo toolkit dijit widgets?

强颜欢笑 提交于 2019-12-03 17:47:23

问题


Simple question I guess, but despite some googling I'm no closer to finding an answer. Does anyone know where to find a list of the icons available in the Dojo toolkit?


回答1:


The best place to look at would be Dojo Toolkit nightly icon directory. Here you can view the CSS classes that correspond to all available icon styles, and if you go to the images directory you can actually see the icon sprites. Unfortunately this isn't as simple as a Class Name -> Icon Image mapping, but all the CSS class names are listed in the same order as the sprite images, left to right.

To quickly scan, know that the commonIcons.css file break down the classes in this order:

  1. Icon Class
  2. IE6 Icon Class (8 bit)
  3. Disabled Icon Class
  4. Setting background positions to their respective places on the sprite image

The editorIcons.css class simply lists all class names.

I was able to find the Dijit Editor icons in an easier to read list, however, this is not maintained by Dojo like the site above and will not necessarily keep up to date.



来源:https://stackoverflow.com/questions/17887440/where-can-i-find-a-list-of-icon-images-for-the-dojo-toolkit-dijit-widgets

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