-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tooltips #6
Comments
By this tooltip possible to describe event number or something. So in this purpose need multiple tool-tips |
you mean multiple entries in one cell, in other words for one day? |
Yeah , Different time hour / text |
I needed it for an importer some days ago and came up with this: function import(data) {
var tmpCal = [];
var tooltips = [];
// for all your calender events
for (let i = 1; i < data.length; i++) {
[date, client, description] = getEntry(data, i);
// if no order exist make an entry on that date
if (!(date in tmpCal)) {
tmpCal[date] = `${client}: ${description}`;
}
// if an order already exist append the next on that date
else {
tmpCal[date] += `<br>${client}: ${description}`;
}
tooltips.push({
date: new Date(date),
text: tmpCal[date]
});
}
datepicker.tooltips = tooltips;
}
function getEntry(data, i) {
return [
data[i][1][0][3], // date
data[i][1][10][3], // client
data[i][1][5][3] // description
];
} It's not the cleanest solution, but serves as a workaround. What you do with [date, time, client, description] = getEntry(data, i); |
tooltips function does not working for multiple option. It just for single date.
The text was updated successfully, but these errors were encountered: