jQWidgets Forums
Forum Replies Created
Viewing 5 posts - 1 through 5 (of 5 total)
-
Author
-
October 26, 2017 at 1:13 pm in reply to: Different rendering between firefox and other browsers? Different rendering between firefox and other browsers? #96949
Yes! It was that! Many thanks again!
October 17, 2017 at 10:39 am in reply to: Custom appointment tooltip Custom appointment tooltip #96751Great Peter, I still need to know more about your great work.
Adding this:
$("#scheduler").on('viewChange', function (event) { console.log("viewChange is raised"); $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip({html: true}); }); });
Solved the problem 🙂
October 16, 2017 at 3:18 pm in reply to: Custom appointment tooltip Custom appointment tooltip #96731Thanks Peter, is there any event where I can get that switch of view?
October 16, 2017 at 11:28 am in reply to: Custom appointment tooltip Custom appointment tooltip #96720I tried something like this on the jqxscheduler definition:
renderAppointment: function(data) { var from = new Date(data.appointment.from); var formatedFromDate = addZero(from.getUTCHours()) + ':' + addZero(from.getUTCMinutes()); var to = new Date(data.appointment.to); var formatedToDate = addZero(to.getUTCHours()) + ':' + addZero(to.getUTCMinutes()); data.html = "<p class='appointment' data-toggle='tooltip' data-placement='top auto' data-original-title='" + data.appointment.subject + "<br>" + data.appointment.description + "<br>" + formatedFromDate + " - " + formatedToDate + "<br>" + data.appointment.id + "'>" + "<span class='subject'>" + data.appointment.subject + "</span/><br>" + "<span class='description'>" + data.appointment.description + "</span/><br>" + "<span class='id'>" + data.appointment.id + "</span/>" + "</p>"; return data; }
The result is a bootstrap tooltip on every appointment, but when I change the view to month and go back to week, it doesn’t work anymore. Any idea?
Is that still working on ver5.1.0? I have tried that example and it doesn’t work or I haven’t been able to
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)