Forge Component
(26)
Published on 29 Mar by Daniel Filipe
26 votes
Published on 29 Mar by Daniel Filipe

Hi,

someone knows how we can use the "event tooltip"
Example: https://fullcalendar.io/docs/event-tooltip-demo


Cheers,
TV

Hi Tiago,

I think you can just put this in the General configuration in the component (the JSON configuration):

eventRender: function(eventObj, $el) {
      $el.popover({
        title: eventObj.title,
        content: eventObj.description,
        trigger: 'hover',
        placement: 'top',
        container: 'body'
      });

Cheers

Eduardo Jauch wrote:

Hi Tiago,

I think you can just put this in the General configuration in the component (the JSON configuration):

eventRender: function(eventObj, $el) {
      $el.popover({
        title: eventObj.title,
        content: eventObj.description,
        trigger: 'hover',
        placement: 'top',
        container: 'body'
      });

Cheers

Hello Eduardo,
Thanks for the sugestion.
Unfortunately didn't work, I think is because the component already have an "eventRender".
Image attached.

Cheers,
TV

I know that you can capture, for example, when you do things, like move events, click on the calendar, etc, and trigger a Screen Action.

Maybe you can use it to show the Tooltip?

Cheers.

Tiago Vicente wrote:

Hi,

someone knows how we can use the "event tooltip"
Example: https://fullcalendar.io/docs/event-tooltip-demo


Cheers,
TV

Let me suggest for the component team to add this feature to component.

I think it's a straightforward one, adding a new parameter and pass to internal js.

It will avoid messy js code from consumers.

Who's with me?