module:core_grades/bulkactions/edit/tree/move

module:core_grades/bulkactions/edit/tree/move

new (require("core_grades/bulkactions/edit/tree/move"))(courseId) → {void}

Source:

The class constructor.

Parameters:
Name Type Description
courseId int

The course ID.

Returns:
Type
void

Members

courseId

Source:
Properties:
Name Type Description
courseId int | null

The course ID.

gradeTree

Source:
Properties:
Name Type Description
gradeTree string | null

The grade tree structure.

moveOptionsTree

Source:
Properties:
Name Type Description
moveOptionsTree MoveOptionsTree | null

The move options tree object.

(inner, constant) The :Object

Source:

object containing the relevant selectors.

Type:
  • Object

Methods

getBulkActionTriggerSelector() → {string}

Source:

Defines the selector of the element that triggers the bulk move action.

Returns:

The bulk move action trigger selector.

Type
string

(inner) executeBulkAction() → {void}

Source:

Defines the behavior once the bulk move action is triggered.

Returns:
Type
void

(inner) fetchGradeTree() → {Promise}

Source:

Fetch the grade tree structure for the current course.

Returns:

The grade tree promise

Type
Promise

(inner) registerCustomClickListenerEvents(modal) → {void}

Source:

Register custom event listeners.

Parameters:
Name Type Description
modal Object

The modal object.

Returns:
Type
void

(inner) renderBulkActionTrigger() → {Promise}

Source:

Renders the bulk move action trigger element.

Returns:

The bulk move action trigger promise

Type
Promise

(inner) renderModalBody() → {Promise}

Source:

Renders the bulk move modal body.

Returns:

The modal body promise

Type
Promise

(inner) showModal() → {Promise}

Source:

Show the bulk move modal.

Returns:

The modal promise

Type
Promise