Calendar: disable scrolling on year/month in sidemenu calendar

This commit is contained in:
nathan 2023-08-21 14:41:31 -06:00
parent 39848c7efe
commit 1911f73884

View File

@ -109,6 +109,16 @@ export class SidemenuDate extends Et2Date
{
let options = super.getOptions();
// No scroll - remove scroll plugin
options.plugins = [];
// Add "Ok" and "today" buttons back in, if desired
const buttons = this._buttonPlugin();
if(buttons)
{
options.plugins.push(buttons)
}
options.allowInput = false;
options.inline = true;
options.dateFormat = "Y-m-dT00:00:00\\Z";