我的 Container 如下所示。我想为这个容器添加边框,如文本框边框,请帮助为容器添加边框。
MyContainer13Ui = Ext.extend(Ext.Container, {
flex: 1,
width: 500,
height: 22,
activeItem: 0,
id: 'url',
initComponent: function() {
MyContainer13Ui.superclass.initComponent.call(this);
}
});
最佳答案
如果你不能在配置中设置border: true,试试这个:
MyContainer13Ui = Ext.extend(Ext.Container, {
flex: 1,
width: 500,
height: 22,
border: 1,
style: {
borderColor: 'black',
borderStyle: 'solid'
},
activeItem: 0,
id: 'url',
initComponent: function() {
MyContainer13Ui.superclass.initComponent.call(this);
}
});
关于extjs - 如何在 ExtJS 中为容器添加边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15873912/