Ste*_*all 2 html javascript css extjs
我在ExtJS生成的窗口按钮上需要特定的ID,但是我在指定ID时遇到了问题.该文件称,这应该是可能的,但是当我指定我自己我仍然得到一个自动生成的ID.
是什么赋予了?
dialog = new Ext.Window({
closeAction:'hide',
plain: true,
buttons: [
{
id: 'my-dialog',
text: 'Done',
handler: function() {
dialog.hide();
}
}
],
items:new Ext.Panel({
applyTo:'add-document-popup-panel'
}),
title: 'Add Documents',
layout: 'fit',
resizable: false,
draggable: false,
width: 300,
height: 300,
modal: true
});
}
dialog.show(this);
Run Code Online (Sandbox Code Playgroud)
检查此主题:http://www.sencha.com/forum/showthread.php? 24443-CLOSED-Cannot-assign- id- to-button-extjs- bug
设置按钮容器的ID ,而不是HTML按钮本身.
| 归档时间: |
|
| 查看次数: |
1505 次 |
| 最近记录: |