Calendar: disable scrolling on year/month in sidemenu calendar

This commit is contained in:
nathan 2023-08-21 14:41:31 -06:00
parent e4ef392d11
commit 1ed3306ac5

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";