Customized scheduler.templates.event_text

I have muliple unit values of section_id, section_id1, and section_id2.

Your sample schedular 06_templates.html contains the following code:
scheduler.templates.event_text=function(start,end,event){
return “Text: “+event.text+”
”+“Descr.”+event.details;
}
My code is currently:
scheduler.templates.event_text=function(start,end,event){
return “

”+event.text+"
";
}

I would like to include the section_id, section_id1, and section_id2 values as part of template. What do I use to allow the printing of these sections id parameters in the data base as part of the scheduler.templates.event_text?

You can use any properties inside template

scheduler.templates.event_text=function(start,end,event){ return "<pre>"+event.text+"\n "+event.section_id+"</pre>"; }

But if you have a key-value pair, most probably you will want to show the label related to the section_id, not the section itself

Next code is based on inner helpers, which are not part of public API, and can be changed in future

scheduler.templates.event_text=function(start,end,event){ var label = scheduler._props["units"].order[event.section_id]; return "<pre>"+event.text+"\n "+label+"</pre>"; }

Where “units” - name of related unit view.

Thanks, I ended up by trial and error using the following code which worked:

scheduler.templates.event_text=function(start,end,event){
return “Status: “+event.section_id+”
”+“Loc: “+event.section_id1+”
”+“Rad: “+event.section_id2+”
”+“Event: “+event.text+”
”+“Notes:”+event.details;}