is the “description” part of a calendar entry supposed to be visible - mine are not, how can I enable this?
Hi Jan,
no, the description is not an official part of the client side entry, but a “non-standard field”. Indeed the ApiDocs could clarify this better. I will fix that soon (the ApiDoc part).
If you want to use the description on the client side directly (for instance in a tooltip), please have a look on the eventRender
functionality in the FC docs. There you can also use non-standard attributes, like the description. (The client side referes to entries as events, so please no confusion about the different wording :) )
You can set this event render function via Java by using the calendar’s method setEntryRenderCallback(String)
. A very simple example of that is available in the samples.
Related docs:
- https://fullcalendar.io/docs/event-object
- https://fullcalendar.io/docs/eventRender
- https://vaadin.com/directory/component/full-calendar-4-web-component/samples (see Modifying the event rendering from server side)
thanks :) but I have no idea how to do what you suggest. I dont know about css, clientside js, stuff.
would it make sense for a future version of the java/vaadin version of full calendar to simply implement a method “.setDescriptionAsToolText(boolean)” to keep us backend java folks in the dark about the html stuff :) ?
Maybe, but not in the near future due to short time (and that might take a bit more) :/
Nevertheless, you can create a GitHub issue with your request and maybe some additional details about the API and what you expect as a result.
thanks, no problem :) thanks for working on this component. Its great.
can you maybe look at the height issue I posted?