0
我有以下代码,我想让标题可选。由于它是一个头文件,所以.x可选类正在被添加。制作标题可选
的代码如下
Ext.create('Ext.grid.Panel', {
renderTo: document.body,
store: userStore,
width: 400,
height: 200,
title: 'Application Users',
columns: [
{
text: 'Name',
width: 100,
sortable: false,
hideable: false,
dataIndex: 'name'
},
{
text: 'Email Address',
width: 150,
dataIndex: 'email',
hidden: true
},
{
text: 'Phone Number',
flex: 1,
dataIndex: 'phone'
}
]
});
有没有解决有关此问题?
我会在哪里添加此代码?在CSS或我 – Mahi29
视图页面需要添加它'电网鉴于afterrender'听众page.See我更新的答案 –
https://fiddle.sencha.com/#fiddle/vf1 – yorlin