这是我的 TabPanel 代码:
在代码内部,TabPanel (tabs_panel) 中有两个选项卡(tab1 和 tab2)
MyTabPanelUi = Ext.extend(Ext.TabPanel, {
activeTab: 0,
height: 210,
resizeTabs: true,
tabWidth: 266,
id: 'tabs_panel',
initComponent: function () {
this.items = [{
xtype: 'panel',
title: 'Project',
padding: 20,
height: 150,
id: 'tab1'
}, {
xtype: 'panel',
title: 'Service',
height: 150,
padding: 20,
id: 'tab2'
}]
}
});
Run Code Online (Sandbox Code Playgroud)
我正在尝试使用以下代码隐藏 tab2 但以下代码
var tabPanel = Ext.getCmp('tabs_panel');
var tabToHide = Ext.getCmp('tab2');
tabPanel.hideTabStripItem(tabToHide);
Run Code Online (Sandbox Code Playgroud)
但不知何故,上面的代码对我不起作用。我该如何解决这个问题?
我想在DisplayField中将“ Labelxx”更改为“新标签”。我怎样才能做到这一点?下面是我的代码:
MyFormUi = Ext.extend(Ext.form.FormPanel, {
title: 'Rates ',
id: 'id_form',
initComponent: function() {
this.items = [{
xtype: 'displayfield',
fieldLabel: 'Labelxx',
anchor: '100%',
name: 'name_lb',
ref: 'localCurrencylbl',
id: 'id_lb'
}];
MyFormUi.superclass.initComponent.call(this);
}
});
Run Code Online (Sandbox Code Playgroud) 容器看起来如下所示.我想为此容器添加边框,如文本框边框,请帮助为Container添加边框.
MyContainer13Ui = Ext.extend(Ext.Container, {
flex: 1,
width: 500,
height: 22,
activeItem: 0,
id: 'url',
initComponent: function() {
MyContainer13Ui.superclass.initComponent.call(this);
}
});
Run Code Online (Sandbox Code Playgroud) 我在数据库列中有大写单词(NO,YES,FAIL)这些单词我需要选择这些列值为No,Yes,Fail(只有拳头字母大写和其他字母是小写)
p/l sql中是否有任何内置函数?