extjs - extjs5 : How to disable all dates after today's date -
i using extjs datefield
ext.create('ext.form.panel', { renderto: ext.getbody(), width: 300, items: [{ xtype: 'datefield', fieldlabel: 'from', maxvalue: new date()
}, { xtype: 'datefield', fieldlabel: 'to', }] });
when using code in extjs 4 works disable dates after today's date , done using maxvalue= date()
.in extjs 5 user can't select day after today's date not disable. how can disable these dates ??
thanks in advance
not sure can... invalid days have been given right classes, , have correct setup. html different.
in ext4, template rendering date cell is
'<a role="presentation" hidefocus="on" class="{parent.basecls}-date" href="#"></a>',
but in ext5, template is
'<div hidefocus="on" class="{parent.basecls}-date"></div>',
the other problem sass code styles still assumes cell a
tag, not div
// include element name since :hover causes performance issues in ie7 , 8 otherwise a.#{$prefix}datepicker-date:hover { color: $datepicker-item-color; // needed override color prevday/nextday background-color: $datepicker-item-hover-background-color; }
in short, appears bug in extjs 5 - javascript widget has been converted, css isn't. suggest raising bug them.
Comments
Post a Comment