Saltar al contenido principal

Function: addQuizSection()

function addQuizSection(
context,
siteUrl,
activityId,
__namedParameters
): Promise<QuizChange & object>;

Defined in: areas/quizzes/structure.ts:330

Adds a section to a quiz starting at a slot, with its heading and whether its questions are shuffled, as the edit page's "Add a new section heading" and its heading and shuffle controls do. A section starts at a page: the slot must be the first of its page (see setQuizPages).

Parameters​

ParameterType
contextBrowserContext
siteUrlstring
activityIdnumber
__namedParameters{ firstSlot: number; heading: string; shuffle?: boolean; }
__namedParameters.firstSlotnumber
__namedParameters.headingstring
__namedParameters.shuffle?boolean

Returns​

Promise<QuizChange & object>