Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

HTML not working in Tooltips

edited December 4 in Tipped

Hi,

I'm trying to put a line break in my tooltip to make it a little neater, and according to the demos, HTML is possible. However, when I do it I just get the actual HTML display as text (i.e.
instead of an actual line break). I've also tried using \n but this breaks the tooltip altogether.

I'm using the tooltip within a FullCalendar instance, as follows:

eventRender: function(event, element) {
    element.qtip({
        content: {
            text: event.desc
        },
        style: {
            classes: 'qtip-bootstrap qtip-shadow'
        },
        position: {
            my: 'bottom right',
            at: 'top right'
        }
    });
    element.find(".fc-event-title").remove();
    element.find(".fc-event-time").remove();
}

How can I add a line break to the event.desc and make it display correctly?

Thanks in advance
Michael

Comments

Sign In or Register to comment.