How can I set the option of a datatable editor form with type datetime so that the datepicker have month and year only as shown in the below screen capture? thx
editor.field('reg_date').input().on('focus', function (a) {
var month = $('.editor-datetime-month').val();
var year = $('.editor-datetime-year').val();
I think your CSS is the only way to do this - I hadn't considered that ability before to be honest! We do part detection on the format for whether to show the time parts, but not the date part.
Answers
<style>
.editor-datetime table{
display: none;
}
</style>
I think your CSS is the only way to do this - I hadn't considered that ability before to be honest! We do part detection on the format for whether to show the time parts, but not the date part.
Regards,
Allan