Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 dojox 数据网格的列中设置一个图标。我可以像在道场树中那样设置类图标吗:dijit/Tree getIconClass?
dijit/Tree
getIconClass
谢谢
也许您应该尝试格式化程序
<script> function imgFormatter(s) { return '<img src="' + s + '"/>'; } </script> <table data-dojo-type="dojox.grid.DataGrid"> <thead> <tr> <th field="col" formatter="imgFormatter"></th> </tr> </thead> </table>