kor TürkçeGitHub

CoursePath

Guides a learner through modules.

kor/ui/CoursePathSource

When to use

  • Use it for courses, onboarding and certification.

Examples

Safety training

Loading the example

<k:CoursePath title="Work safety" press=".onPress">
	<k:CourseModule key="1" title="Introduction" text="8 min" kind="video" progress="100"/>
	<k:CourseModule key="2" title="Protective equipment" text="15 min" progress="40"/>
	<k:CourseModule key="3" title="Quiz" kind="quiz" locked="true"/>
	<k:CourseModule key="4" title="Certificate" kind="exam" locked="true"/>
</k:CoursePath>

API

Properties

NameTypeDefaultDescription
titlestringCourse
textstringDescription

Aggregations

NameTypeDescription
modulesCourseModule[]Modules

Events

NameTypeDescription
presskey: stringAn unlocked module was pressed

CourseModule

A course module.

Properties

NameTypeDefaultDescription
keystringKey
titlestringName
textstringDuration or description
kindstringreadingvideo, quiz, exam, lab, reading or live
iconstringReplaces the kind icon
progressfloat0Progress, 0 to 100
scorestringResult shown when finished
lockedbooleanfalseWhether it is locked

Related

ProgressStages