在我的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'沒有用'.'作爲前綴,所以它與類名不匹配,它會嘗試匹配標籤名爲的標籤 –