Timetable
Shows lessons of a week.
When to use
- Use it for schools, training and rooms.
Examples
Class 9A
Loading the example
<k:Timetable from="08:30" until="13:00">
<k:Lesson title="Mathematics" text="B12" day="1" start="08:30" end="10:00"/>
<k:Lesson title="Physics" text="Lab 1" day="1" start="10:15" end="11:45"/>
<k:Lesson title="History" text="A04" day="2" start="09:00" end="10:30"/>
<k:Lesson title="English" text="A06" day="3" start="08:30" end="10:00"/>
<k:Lesson title="Chess club" day="3" start="09:15" end="10:45"/>
<k:Lesson title="Mathematics" text="B12" day="4" start="10:15" end="11:45" cancelled="true"/>
<k:Lesson title="Sports" day="5" start="11:00" end="12:30"/>
</k:Timetable>API
Properties
| Name | Type | Default | Description |
|---|---|---|---|
label | string | Accessible name | |
days | int | 5 | Number of days from the start of the week |
firstDay | int | 1 | First day. 1 is Monday, 0 is Sunday |
from | string | 08:00 | Start of the day |
until | string | 17:00 | End of the day |
hourHeight | int | 56 | Height of an hour in pixels |
Aggregations
| Name | Type | Description |
|---|---|---|
lessons | Lesson[] | Lessons |
Events
| Name | Type | Description |
|---|---|---|
press | key: string | A lesson was pressed |
Lesson
A lesson.
Properties
| Name | Type | Default | Description |
|---|---|---|---|
key | string | Key | |
title | string | Lesson | |
text | string | Room or teacher | |
day | int | 1 | Day. 1 is Monday, 0 is Sunday |
start | string | Start, HH:mm | |
end | string | End, HH:mm | |
tone | int | 0 | Color 1 to 6. 0 derives it from the title |
cancelled | boolean | false | Whether it is cancelled |