a) be sure that you have added above rows before scheduler.init
b) event_text template will affect event’s rendering in day an week views, for bars in month view you need to use event_bar_text template
I have just done exactly how you have told, but still not working.
Here is the complete code
<script type="text/javascript" charset="utf-8">
function init() {
scheduler.config.xml_date="%Y-%m-%d %H:%i";
scheduler.locale.labels.timeline_tab = "Timeline";
scheduler.locale.labels.section_custom="Section";
scheduler.config.details_on_create=true;
scheduler.config.details_on_dblclick=true;
scheduler.config.time_step = 30;
scheduler.config.multi_day = true;
scheduler.templates.event_class=function(start,end,event){
if (start < (new Date())) //if date in past
return “past_event”; //then set special css class for it
}
scheduler.config.lightbox.sections=[
{ name:"description", height:50, map_to:"text", type:"textarea", focus:true },
{ name:"location", height:43, map_to:"event_location", type:"textarea" },
{ name:"time", height:72, type:"time", map_to:"auto"}
]
scheduler.locale.labels.timeline_tab = "Persons";
scheduler.locale.labels.section_custom="Section";
scheduler.locale.labels.timeline_tab = "Timeline";
scheduler.config.xml_date="%Y-%m-%d %H:%i";
scheduler.createTimelineView({
name:"timeline",
x_unit:"minute",//measuring unit of the X-Axis.
x_date:"%H:%i", //date format of the X-Axis
x_step:120, //X-Axis step in 'x_unit's
x_size:24, //X-Axis length specified as the total number of 'x_step's
x_start:00, //X-Axis offset in 'x_unit's
x_length:48, //number of 'x_step's that will be scrolled at a time
y_unit: //sections of the view (titles of Y-Axis)
[{key:1, label:"Section A"},
{key:2, label:"Section B"},
{key:3, label:"Section C"},
{key:4, label:"Section D"},
{key:5, label:"Section E"},
{key:6, label:"Section F"},
{key:7, label:"Section G"},
{key:8, label:"Section H"},
{key:9, label:"Section I"},
{key:10, label:"Section J"},
{key:11, label:"Section K"},
{key:12, label:"Section L"}
],
y_property:"section_id", //mapped data property
render:"ge_appointments" //view mode
});
scheduler.attachEvent(“onTemplatesReady”, function(){
scheduler.templates.event_bar_text=function(start,end,event){
return “” + event.text + “
” + event.location + “”;
}
});
scheduler.init('scheduler_here',new Date(),"month");
scheduler.load("data/connector.php");
var dp = new dataProcessor("data/connector.php");
dp.init(scheduler);
}
</script>
anyone who is online please help me
Anyone help me pls
Sir,
How to I add colors to the events if the column value is confirmed green, if it canceled red like that.
I have got column name like appt_fixer_dispo
Please help me.