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
| Parameter | Type |
|---|---|
context | BrowserContext |
siteUrl | string |
activityId | number |
__namedParameters | { firstSlot: number; heading: string; shuffle?: boolean; } |
__namedParameters.firstSlot | number |
__namedParameters.heading | string |
__namedParameters.shuffle? | boolean |
Returns
Promise<QuizChange & object>