Skip to content

Latest commit

 

History

History
30 lines (15 loc) · 1.36 KB

README.md

File metadata and controls

30 lines (15 loc) · 1.36 KB

Deprecated - Use adapt-contrib-branching instead

This extension is no longer recommended to use. You should instead use the Core team supported adapt-contrib-branching instead!


adapt-block-branching

An Adapt framework extension to add block based branching to an article.

Attributes

articles.json

The extension enables different blocks within an Article to be hidden or shown according to which branching path the learner takes.

_isEnabled (boolean) Disables branching functionality in the Article. Ideal to use for QA or testing purposes

_resetOnRevisit (boolean) If set to true the extension resets if you navigate to off the page.

blocks.json

_blockBranching (object) The setting is required for every single block on the page with Branching

_isEnabled (boolean) Turns the current block into a branching block. This will hide any blocks that appear later in the page.

_scenarioId (string) Used to assign an ID for the current block. This is used instead of the normal Block ID so that the extension still functions when you import/export the course from the Adapt Authoring Tool.

_userAnswer (array - strings): This array links to the scenario ID of the following blocks on the page to the answers of the items array in any question component inside this block.