{field: 'begtime', the title: 'start time', width: 85, align: 'center',
Editor: {
Type: 'datebox',
Options: {
Required: true,
},
}
},
The above is written by the editor
$(' # dd). Datebox () datebox (' calendar ') calendar ({
The validator: function (date) {
Var now=new Date ();
Var d1=new Date (now. GetFullYear (), now, getMonth (), now the getDate ());
Return d1 & lt;=the date;
}
});
This is I find the set range, but how to combine both
CodePudding user response:
After the start editing for the editor, and then set propertiesCodePudding user response:
OnShowPanel: function () {$(this). Datebox (' calendar ') calendar ({
The validator: function (date) {
Var now=new Date ();
Var date1=new Date (now. GetFullYear (), now, getMonth (), now the getDate ());
Return date1 & lt;=the date;
}
});
}