Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eventContent moves arrow event length indicators #5547

Closed
CraftyDlx opened this issue Jun 25, 2020 · 2 comments
Closed

eventContent moves arrow event length indicators #5547

CraftyDlx opened this issue Jun 25, 2020 · 2 comments

Comments

@CraftyDlx
Copy link

I am using v5-rc1 and added some extra info to my event titles using

eventContent: function(info) {
  return info.event.title + " (" + info.event.extendedProps.eventId +")";
},

I understand that the small arrows left and right of an event bar indicate that the event is longer than the actual view. That's how it should look like:
Screen Shot 06-25-20 at 10 49 PM

After using eventContent the right arrow slides from the right border to the end of the title:
Screen Shot 06-25-20 at 10 48 PM

This is not intentional, is it? Or have the arrows another meaning?

There is one more thing: Is it possible to use eventContent only for one event feed when there are more than one? I tried

      eventSources: [
          {
            url: 'http://localhost/matpro/public/event-feed',
            eventContent: function(info) {
              return info.event.title + " (" + info.event.extendedProps.eventId +")";
            },
          },
          {
            url: 'http://localhost/matpro/public/holiday-feed',
            backgroundColor: 'coral',
            textColor: 'black',
            display: 'background'
          }
      ],

but this way it does not work at all.

@arshaw arshaw added this to the next-minor milestone Jun 25, 2020
@acerix
Copy link
Member

acerix commented Jun 25, 2020

Thanks, confirmed.

https://codepen.io/acerix/pen/xxZreGX?editors=001

You can check the id of the event's source in eventContent and not return anything for those sources which will use the default content.

@arshaw
Copy link
Member

arshaw commented Jun 29, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants