Assessment/Sections

Everything relating to any sections defined in the activity.

Methods

isFirstItemInSection() → {boolean}

Whether the current item is the first in this section.

Since
0.1.0
Returns
Type
(boolean)

isLastItemInSection() → {boolean}

Whether the current item is the last in this section.

Since
0.1.0
Returns
Type
(boolean)

section() → {object}

The current section of the activity.

Returns {} if sections aren't being used.

Since
0.1.0
Returns
Type
(object)

sectionHasShuffledItems() → {boolean}

Whether items have been shuffled within this section.

Since
0.1.0
Returns
Type
(boolean)

sectionIndex() → {number}

The index of the current section, 1-based.

Returns 0 if sections aren't being used.

Since
0.1.0
Returns
Type
(number)

sectionItemPosition() → {number|null}

The item position in the current section.

Returns null if the activity isn't using sections.

Since
0.1.0
Returns
Type
(number | null)

sections() → {array}

An array of section objects.

Returns [] if sections aren't being used.

Since
0.1.0
Returns
Type
(array)

totalItemsInSection() → {number|null}

The total number of items in the current section.

Returns null if sections aren't being used.

Since
0.1.0
Returns
Type
(number | null)