Hi everyone,
I have a scheduler instance with a sections configured but cant seem to load data into events
scheduler.createTimelineView({
fit_events: true,
name: "month_timeline",
y_property: "machine",
render: "bar",
x_unit: "day",
x_date: "%D %j",
x_step: 1,
x_size: 31,
x_length: 7,
dx: 155,
dy: 120,
event_dy: 'full',
section_autoheight: false,
full_event__dy: true,
y_unit: this.machines
});
tryed as dummy data:
scheduler.addEvent({
start_date: “14-07-2022”,
end_date: “16-07-2022”,
text: “Meeting”,
machine: “01t0C000002dTQKQA2” // user data
});
scheduler.addEvent({
start_date: “14-07-2022 09:00”,
end_date: “16-07-2022 12:00”,
text: “Meeting”,
machine: “01t0C000002dTQKQA2” // user data
});
scheduler.parse({events:[
{text:“Conference”, start_date:“17/07/2022 12:00”, end_date:“18/07/2022 21:00”,
machine:“01t0C000002dTQKQA2”},
{text:“Meeting”, start_date:“17/07/2022 09:00”, end_date:“17/07/2022 21:00”,
machine:“01t0C000002nub8QAA”},
{text:“Conference”, start_date:“18/07/2022 10:00”, end_date:“18/07/2022 15:00”,
machine:“01t0C000002nub8QAA”}
]});
but i can’t seem to see any event or i get a this.template.api_date is not a function alert.
Is there any type of example for event loading for timeline with sections ?
I’m not working with one event object in Salesforce DB as I require more than one object to be displayed so I need to wrap objects to same format and display on scheduler.
ThanksPreformatted text