Error in custom view - "this._els.dhx_multi_day is null"

Hi,

Trying to reproduce example in doc : https://docs.dhtmlx.com/scheduler/custom_views.html

I got “this._els.dhx_multi_day is null”.

Here the snippet code (same as in doc) - Clic on Work Week view : http://docs.dhtmlx.com/scheduler/snippet/805366dd

In firefox console, something weird :

console.log(scheduler.templates) ==> I can see week_date entry in scheduler.templates object
console.log(scheduler.templates.week_date) ==> undefined

Can you please help ?

Thx

related error ? https://forum.dhtmlx.com/viewtopic.php?f=6&t=62734

You must either specify templates in onTemplatesReady handler as in the example you tried to reproduce or after scheduler.init().

Here are examples that work correctly
1 docs.dhtmlx.com/scheduler/snippet/482b4207
2 docs.dhtmlx.com/scheduler/snippet/71754c80