Daily schedule container¶
The Daily Schedule feature allows you to display a complete list of all scheduled events for the current day. This is useful for showing "Today's Agenda" or "Daily Program" sections on your digital signage.
The daily schedule always shows the current day, in the event's time zone. For
tomorrow's sessions use the upcoming-items container's "tomorrow" scope instead — see
Show tomorrow's schedule in the last gap. Like the upcoming
container, this one reads the room's whole schedule, so the template becomes
Room Scoped (see How templates are assigned).
Setup¶
<div class="schedule"
data-daily-schedule
data-template-id="daily-row"
highlight-active-item="true"
data-empty-message="No sessions today"></div>
<template id="daily-row">
<div class="schedule-item">
<span class="time" data-field="start_time_24h"></span>
<h3 data-field="title"></h3>
<p data-field="room"></p>
</div>
</template>
| Attribute | Values | Default | Description |
|---|---|---|---|
data-daily-schedule |
— | required | Marks the container |
data-template-id |
template id |
required | The row template |
data-empty-message |
any text | none | Shown when no item starts today; without it the container is hidden |
highlight-active-item |
"true" |
off | Adds the highlight classes below to the rows |
Items that start on the current day are listed in chronological order, gaps excluded,
whenever they end. A row is one clone of the template with that item's fields as its data
scope; everything from the data binding reference
works inside it — data-field, data-condition, nested lists with their own helper
<template>s, and the row time attributes daily-start-time-format /
daily-end-time-format (Time formatting). Several containers
can share a page, each with its own template and settings.
Highlighting the active item¶
You can automatically highlight the currently active item in your daily schedule by adding the highlight-active-item="true" attribute to your schedule container. This feature dynamically adds CSS classes that you can style to make the active item stand out visually.
The classes go on the root element of each row — the first element inside the template:
| Class | Applied to |
|---|---|
current-item-highlighted |
The item that is active now |
past-active-item |
The most recent item before it |
next-active-item |
The next item after it |
.current-item-highlighted {
background-color: #4caf50;
color: #fff;
font-weight: bold;
border-left: 5px solid #2e7d32;
}
.past-active-item { opacity: 0.5; }
.next-active-item { border-left: 3px solid #2196f3; }
During a gap no row carries any of the three classes; the first item of the day has no
past-active-item and the last none next-active-item. The classes follow the active item
automatically. Leave the attribute off, or set it to anything but "true", to disable the
feature — the rows are then plain clones you style yourself.
Typical designs: a timeline with a colored dot per row and a bold current row; muted
rows for finished sessions; a status badge (::before content Now, Next, Done) driven
by the three classes; a grid of cards. Keep animations light on long lists — a pulsing
current row is fine, animated transitions on every row are not.
Behavior¶
- The sign checks for schedule changes every 15 seconds and refreshes the list when changes are detected
- The active-item check runs twice a second, so the highlight classes move the moment a session starts or ends.
- The list switches to the new day at midnight in the event's time zone.
- Nothing renders? Check that
data-template-idmatches the template'sid, that items start today in the event's time zone (not the device's), and the console. - A long day needs a container with a fixed height and
overflow: hidden, and a simple row template; thirty animated cards are slower than thirty rows of text.
Examples¶
Four ready-to-upload daily-schedule templates, previewed on Example templates. A tomorrow's schedule board is not a daily-schedule template — it is the upcoming-items gap template on Show tomorrow's schedule in the last gap.
Related¶
- Upcoming items container
- Template data fields
- Time formatting
- Event scoped templates — the same idea across all rooms