Any ideas how to implement tipsy tooltips over jQuery’s UI Datepicker? Basically I want to get a tooltip when the user moves on a specific date in the Datepicker. The Datepicker will be displayed inline and always visible.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That sounds pretty cool,
Here’s my solution. Read the comments.
Inconveniences:
The
_updateDatepickermethod get’s called also when the user selects a day form the visible month, or when you set a date viadatepicker('setDate', theDate), which could be a little inefficient.It relies in a private function of the Datepicker, if in future versions they decide to change it’s functionality, or change the name, this code will break. Although because of the nature of the function I don’t see that happening soon.
NOTE:
My first approach was to hook to the
onChangeMonthYearevent of theui.datepicker, but because the event is triggered, before the replacing of the dates in the calendar, theaddTipsysmethod, would add the tipsy’s to the calendar dates that are about to get cleared. Therefore the need to call theaddTipsysevent AFTER the elements get refreshed.EASY HACK:
Hook a method to the
onChangeMonthYearevent of your calendar, and do a setTimeout to call the tipsy’s. Some validation will need to be done.