kor TürkçeGitHub

Timetable

Shows lessons of a week.

kor/ui/TimetableSource

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

NameTypeDefaultDescription
labelstringAccessible name
daysint5Number of days from the start of the week
firstDayint1First day. 1 is Monday, 0 is Sunday
fromstring08:00Start of the day
untilstring17:00End of the day
hourHeightint56Height of an hour in pixels

Aggregations

NameTypeDescription
lessonsLesson[]Lessons

Events

NameTypeDescription
presskey: stringA lesson was pressed

Lesson

A lesson.

Properties

NameTypeDefaultDescription
keystringKey
titlestringLesson
textstringRoom or teacher
dayint1Day. 1 is Monday, 0 is Sunday
startstringStart, HH:mm
endstringEnd, HH:mm
toneint0Color 1 to 6. 0 derives it from the title
cancelledbooleanfalseWhether it is cancelled

Related

MonthCalendarClassroom