question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support an optional title on background events

See original GitHub issue

Originally reported on Google Code with ID 2481

It appears that if your 'rendering' is 'background' or 'inverse-background', the title
does not display. It seems like this is by design right now, but it'd be really useful
to optionally support this.

I feel that the rendering style and whether or not the text displays on the event are
mutually exclusive. In my use case, which I feel is quite common, I need to block off
time slots, and also make it very explicit to a user that these are "Unavailable",
or moreso, why they are unavailable.

Reported by ipalka on 2015-04-11 17:44:34

Imported with 1 stars.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:3
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
StacyMadercommented, Oct 4, 2019

I know this is old, but with 4.3.1, you can use eventRender:

eventRender : function(info) {

       const props = info.event.extendedProps,
          rendering = info.event.rendering;

       if(rendering == "background") {
		$(info.el).text(info.event.title);
     }
}

This assumes your events have { rendering : "background" } defined within.

2reactions
arshawcommented, Jun 22, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to add an image Page Title Background in the Events ...
How to add an image Page Title Background in the Events listing page ... Please go to the global VamTam option panel in...
Read more >
Get Id and title from background events on dayClick
Combine dayClick with the eventRender callback. eventRender: function(event,element){ if(event.rendering == "background"){ ...
Read more >
Get started formatting Power BI visualizations - Microsoft Learn
To get you started, this article shows you how to customize a visualization title, legend, background, label, layer, and add a theme.
Read more >
Modify titles in iMovie on Mac - Apple Support
You can edit the text, font, size, color, and alignment for a title. You can also preview other title styles and change the...
Read more >
The HTML Option element - MDN Web Docs - Mozilla
If this Boolean attribute is set, this option is not checkable. Often browsers grey out such control and it won't receive any browsing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found