Skip to content
Snippets Groups Projects
Commit 1f0ceb90 authored by Alexa Valentová's avatar Alexa Valentová
Browse files

add event name to calendar info popup

parent 127cefd4
Branches
Tags
1 merge request!9Calendar improvements
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
"label": "Název políčka", "label": "Název políčka",
"placeholder": "Placeholder" "placeholder": "Placeholder"
}, },
"calendarData": "[{\"title\": \"event 1\", \"date\": \"2023-04-01\", \"url\": \"https://example.com\"}, {\"title\": \"event 2\", \"date\": \"2023-04-01\", \"url\": \"https://example.com\"}, {\"title\": \"event 3\", \"date\": \"2023-04-01\", \"url\": \"https://example.com\"}, {\"title\": \"event 4\", \"date\": \"2023-04-01\", \"url\": \"https://example.com\"}, {\"title\": \"event 5\", \"date\": \"2023-04-01\", \"url\": \"https://example.com\"}, {\"title\": \"event 2\", \"date\": \"2023-04-10\", \"url\": \"https://example.com\"}]", "calendarData": "[{\"title\": \"event 1\", \"date\": \"2024-03-02\", \"url\": \"https://example.com\"}, {\"title\": \"event 2\", \"date\": \"2024-04-01\", \"url\": \"https://example.com\"}, {\"title\": \"event 3\", \"date\": \"2024-03-02\", \"url\": \"https://example.com\"}, {\"title\": \"event 4\", \"date\": \"2023-04-01\", \"url\": \"https://example.com\"}, {\"title\": \"event 5\", \"date\": \"2023-04-01\", \"url\": \"https://example.com\"}, {\"title\": \"event 2\", \"date\": \"2023-04-10\", \"url\": \"https://example.com\"}]",
"greyColors": [ "greyColors": [
{"cls": "grey-50", "hex": "#f7f7f7", "name": "Grey 50"}, {"cls": "grey-50", "hex": "#f7f7f7", "name": "Grey 50"},
{"cls": "grey-100", "hex": "#f3f3f3", "name": "Grey 100"}, {"cls": "grey-100", "hex": "#f3f3f3", "name": "Grey 100"},
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
--fc-event-border-color: #fea86a; --fc-event-border-color: #fea86a;
--fc-border-color: #ed9654; --fc-border-color: #ed9654;
--fc-today-bg-color: #ed9654; --fc-today-bg-color: #ed9654;
--fc-daygrid-event-dot-width: 4px;
} }
.fc { .fc {
......
...@@ -16,7 +16,15 @@ const showEventData = (info) => { ...@@ -16,7 +16,15 @@ const showEventData = (info) => {
info.el, info.el,
{ {
content: ` content: `
<div class="p-2 flex flex-col gap-3 text-white"> <div class="p-2 flex flex-col gap-3 text-white whitespace-nowrap">
${
(info.event.title !== undefined) ?
`
<div class="flex gap-2 items-baseline">
<div>${info.event.title}</div>
</div>
` : ''
}
${ ${
(info.event.extendedProps.location !== undefined) ? (info.event.extendedProps.location !== undefined) ?
` `
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment