Open pysailor opened 4 years ago
Spec looks great. If you give me a new Quaive bundle once it's done, then I can pick up the design work from there again.
Technical recherche:
The event object allows the definition of backgroundColor
, borderColor
, color
(combination fo the latter two) and textColor
. The values can be color names but also any other CSS color value and will be translated into CSS definition in a style attribute on the <a>
element.
See: https://fullcalendar.io/docs/v3/event-object
pat-calendar
takes a list of events, each withing a<li>
, in the context of<ul class="cal-events">
, and turns them into elements in the calendar display.pat-calendar already copies over the classes that are set on each
<li>
to the<a>
. We now want to support the explicit setting of color and background-color via data attributes.If present, the respective value should be set as
style
attribute on the<a>
, the same tag that also receives the copied classes. If both are present, separated by semicolon.New attributes and their mapping, each with an example value:
Full markup example:
Should be turned into
(
pat-calendar
already produces that code, the only new thing is the handling of the 2 new data attributes.)