在我的extjs6网格中,列标题不符合空格。如何仅在列标题中进行单词换行?这是我所尝试过的,并没有工作。extjs网格列标题文字换行不起作用
xtype: 'grid',
title: 'Daily Performance',
itemId: 'performanceAccountDailyGridID',
bind: {
store: '{myDailyPerformanceAccountStore}'
},
margin: '10px 0px 10px 0px',
ui: 'featuredpanel-framed',
cls: 'custom-gridPerformance',
height: 400,
width: 800,
columns: [
{
header: 'Filedate',
dataIndex: 'filedate',
flex: 1
},
CSS
.custom-gridPerformance .x-column-header-inner .x-column-header-text {
white-space: normal;
}
'.custom-gridPerformance X-列标题{'永远不会匹配任何内容,是一个错字? –
不是错别字。只是不确定用于编辑标题的正确格式。它应该是什么? – solarissf
因为'x-column-header'没有用'.'作为前缀,所以它与类名不匹配,它会尝试匹配标签名为的标签 –