【发布时间】:2011-11-25 17:59:46
【问题描述】:
如何设置内容窗格的 widgetid 属性?
new dijit.layout.ContentPane({
content: "<p>Optionally set new content now</p>",
style: "height:125px",
// I can set id, but widgetid will differ
id: 'someId',
// no effect
widgetid: 'myWidgetId',
// still fail
widgetId: 'how can I set you, God damn it?!'
}
我需要它来使用 dijit.byId() 查找内容窗格,因为此方法通过它的 widgetid 属性获取元素。
【问题讨论】:
标签: dojo