module:core_grades/bulkactions/edit/tree/move

module:core_grades/bulkactions/edit/tree/move

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

Description:
  • The class constructor.

Source:
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

Description:
  • object containing the relevant selectors.

Source:

object containing the relevant selectors.

Type:
  • Object

Methods

getBulkActionTriggerSelector() → {string}

Description:
  • Defines the selector of the element that triggers the bulk move action.

Source:
Returns:

The bulk move action trigger selector.

Type
string

(inner) executeBulkAction() → {void}

Description:
  • Defines the behavior once the bulk move action is triggered.

Source:
Returns:
Type
void

(inner) fetchGradeTree() → {Promise}

Description:
  • Fetch the grade tree structure for the current course.

Source:
Returns:

The grade tree promise

Type
Promise

(inner) registerCustomClickListenerEvents(modal) → {void}

Description:
  • Register custom event listeners.

Source:
Parameters:
Name Type Description
modal Object

The modal object.

Returns:
Type
void

(inner) renderBulkActionTrigger() → {Promise}

Description:
  • Renders the bulk move action trigger element.

Source:
Returns:

The bulk move action trigger promise

Type
Promise

(inner) renderModalBody() → {Promise}

Description:
  • Renders the bulk move modal body.

Source:
Returns:

The modal body promise

Type
Promise

(inner) showModal() → {Promise}

Description:
  • Show the bulk move modal.

Source:
Returns:

The modal promise

Type
Promise