First of all, i’ve not yet say thanks for your great product and for your support.
I’ve another question.
I would like to add in the month view, the label of the y section of every event from the timeline view.
For example i’ve many event for “option1” in the timeline, and i want that schdeuler shown “option1” near each event in the month view.
Thanks in advance
Salvatore
I know that, but i don’t know how to pass the section label.
For example :
scheduler.templates.event_bar_text = function(start,end,event){
return “Descr.”+event.section_id+" "+“Text: “+event.text+”
”;
};
works, but in the month view it show just the number of the id. i need the label.
so i think something like that:
scheduler.templates.event_bar_text = function(start,end,event){
var eti = scheduler.getLabel(“section_id”,event.section_id);
return “Descr.”+eti+" "+“Text: “+event.text+”
”;
};
but it doesn’t work…
var eti = scheduler.getLabel(“section_id”,event.section_id);
This is a valid code, but it will work only if you have some input ( select section ) mapped to the “section_id” in the lightbox form
Ok. I insert the label select in lightbox, so i can get the label. But i would like that, when i click to insert an event, the select goes automatically to the correct select options, that corrispond to the y-value. How i can do this?
Just an advice, i put the select options to lightbox, i select it manually, but in the db i don’t gfet the label but just the section_id…
ok, i add this
{name:“custom”, height:23, type:“select”, options:sections, map_to:“section_id”}
in the lightbox sections
then i add
scheduler.templates.event_bar_text = function(start,end,event){
var eti = scheduler.getLabel(“section_id”,event.section_id);
return “”+eti+""+" è in “+event.text+”
";
};
and now it work.
Thanks a lot!