Block Time

How can I block specific time on mobile calendar?

On the desktop version is just call:

scheduler.blockTime({…});

Hello,

  1. You should to exclude “allDay” toogle from the form:

scheduler.config.form = [
{view:“text”, id:“text”, name:‘text’, … },
{view:“datetext”, id:‘start_date’,name:‘start_date’ …},
{view:“datetext”, id:‘end_date’, name:‘end_date’, …},
{view:“textarea”, name:‘details’, … }
];

Please check the sample with the custom form in scheduler package: samples/01_basic/06_custom_form.html

  1. the date formats should also be changed (samples/01_basic/02_date_format.html):

scheduler.config.form_date = “%m-%d-%Y”;
scheduler.config.xml_date = “%Y-%m_%d”;

  1. an the “timeSelect” property of the calendar should be disabled:

dhx.ui({
view: “scheduler”,
id: “scheduler”
});
$$(“scheduler”).$$(“formCalendar”).define(“timeSelect”,0);