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