Saltar al contenido principal

Interface: LessonPage

Defined in: areas/lessons/lessons.ts:29

The lesson page the person is on, as lessonPage and answerLessonPage read it.

Properties​

PropertyTypeDescriptionDefined in
buttons?object[]A content page's buttons, by label, and the page each jumps to (Moodle's jump codes: -1 next, -9 end…).areas/lessons/lessons.ts:38
feedback?objectAfter an answer: whether Moodle took it as right, and the teacher's response to it.areas/lessons/lessons.ts:42
feedback.correct?boolean-areas/lessons/lessons.ts:42
feedback.response?string-areas/lessons/lessons.ts:42
fields?LessonField[]A question page's inputs.areas/lessons/lessons.ts:40
kind"feedback" | "end" | "content" | "question"What the page is: content with buttons, a question, the feedback after an answer, or the lesson's end.areas/lessons/lessons.ts:31
pageId?numberThe page's id; for feedback, the page it goes on to (-9 is the end).areas/lessons/lessons.ts:33
textstringThe page's text as shown: its content, the question, Moodle's messages, the score at the end.areas/lessons/lessons.ts:36
title?string-areas/lessons/lessons.ts:34