Allow tooltip callback function for template