как я могу сделать функцию проверки, которая выдает мне ошибку, когда IN1> OU1 или IN2> OU2 ??
это мой код (сетка с плагином roweditor)
{
xtype: 'gridpanel',
height: 250,
width: 400,
title: 'My Grid Panel',
columns: [
{
xtype: 'datecolumn',
text: 'IN1',
dataindex 'F02ORAIN1',
field: {
xtype: 'timefield',
id 'editF02ORAIN1'
}
},
{
xtype: 'datecolumn',
dataindex 'F02ORAOU1',
text: 'OU1',
field: {
xtype: 'timefield',
id 'editF02ORAOU1'
}
},
{
xtype: 'datecolumn',
text: 'IN2',
dataindex 'F02ORAIN2',
field: {
xtype: 'timefield',
id 'editF02ORAIN2'
}
},
{
xtype: 'datecolumn',
text: 'OU2',
dataindex 'F02ORAOU2',
field: {
xtype: 'timefield',
id 'editF02ORAOU2'
}
}
],
plugins: [
Ext.create('Ext.grid.plugin.RowEditing', {
})
]
}