search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

columnBubble - get Date of Column

Asked by Anonymous
6 years ago.

Hello,
im evaluating DayPilot Pro for my Project.

I want to Display some special Infos in a columnBubble and there i need to have the Date of specified column. I can only get the ID of the resource. Im Using the DaysResources Calendar similar to this
https://javascript.daypilot.org/demo/calendar/daysresources.html

Here is my code:
dp.columnBubble = new DayPilot.Bubble({
cssOnly: true,
cssClassPrefix: "bubble_default",
onLoad: function(args) {
var c = args.source;
args.async = true; // notify manually using .loaded()

// simulating slow server-side load
setTimeout(function() {
args.html = "testing bubble for: <br>" + c.id + " date: " c.start; // resource id in resources view
args.loaded();
}, 500);
}
});

c.start is undefined, it doesnt work with c.start() and also c.name is undefined...

Maybe im totally wrong?

Thanks for your help

Answer posted by Dan Letecky [DayPilot]
6 years ago.

This was a bug which is now fixed in the latest sandbox build (2018.3.3388).

You can test it and download the latest build here:
https://javascript.daypilot.org/sandbox/calendar/daysresources.html

Let me know if the problem persists.

Comment posted by Anonymous
6 years ago.

Oh, fine - that works!
Great

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.