0
我用ExtJs 6.2.0, 寫了一個帶有一個日期列的簡單網格,但它看起來不太好看。我的意思是日期選擇器非常狹窄和怪異。Extjs datefield在我的網格中看起來很奇怪
xtype: 'gridpanel',
reference: 'payordFlowGrid',
width: 1000,
minHeight: 120,
margin: '0 0 10 0',
requires: [
'Ext.selection.CellModel',
'Ext.grid.column.Action'
],
plugins: {
ptype: 'cellediting',
clicksToEdit: 1,
listeners: {
beforeedit: function(editor, context, eOpts){
// workaround for error at clicking a widgetcolumn
if (context.column.widget)
return false;
}
}
},
bind: {
store: '{payordflowstore}'
},
actions: {
del: {
glyph: '[email protected]',
tooltip: 'Del',
handler: 'onGridPayordFlowDel'
}
},
columns: [
...
{ text: '№ п.п.', dataIndex: 'npp', width: 100,
editor: {
allowBlank: true
}
},
{ xtype: 'datecolumn',
header: 'Дата',
dataIndex: 'dt',
width: 95,
format: 'd m Y',
editor: {
xtype: 'datefield',
format: 'd.m.y'
}
},
{ text: 'Расчет.сумма', dataIndex: 'summa6', width: 100
},
{ xtype: 'checkcolumn', text: 'Подпись', dataIndex: 'signed' }
,
{
menuDisabled: true,
sortable: false,
xtype: 'actioncolumn',
width: 50,
items: ['@del']
}
]
}
但我看到there煎茶樣品,這看起來不錯:
你說得對。我剛剛在我的應用程序文件夾的命令行中完成了此操作:「sencha app build」,並且sencha添加了必需的css應用程序,並且我的日期選擇器變得好看 – Lev