Interface: ActivityFields
Defined in: areas/activities/build.ts:27
The common inputs of an activity's form; anything else goes in settings by its form field name.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
completion? | Completion | When it counts as complete. | areas/activities/build.ts:39 |
content? | string | A page's content, or a label's text (HTML). | areas/activities/build.ts:32 |
description? | string | The description (HTML), shown on the activity's page. | areas/activities/build.ts:30 |
embed? | string[] | Local files (absolute paths) to embed in the description, the content or an editor in settings, as Moodle's editor inserts them: the HTML names each by its file name (<img src="shot.png">). | areas/activities/build.ts:45 |
name? | string | - | areas/activities/build.ts:28 |
restrictions? | Restrictions | When students can open it ({ conditions: [] } removes every restriction). | areas/activities/build.ts:37 |
settings? | Record<string, FieldValue> | - | areas/activities/build.ts:40 |
url? | string | A URL resource's target. | areas/activities/build.ts:34 |
visibility? | "hidden" | "shown" | "stealth" | - | areas/activities/build.ts:35 |