mod_bigbluebuttonbn/mod_form

JS for the mod_form page on mod_bigbluebuttonbn plugin.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Members

(inner, constant) ELEMENT_SELECTOR

Source:

Get all selectors in one place.

Methods

(inner) applyInstanceTypeProfile(profileType, isFeatureEnabled)

Source:

Show or hide form element depending on the selected profile

Parameters:
Name Type Description
profileType string
isFeatureEnabled function

(inner) getParticipantList() → {any}

Source:
Returns:
Type
any

(inner) init(info)

Source:

Initialise the moodle form code.

This will help hide or show items depending on the selection of the instance type.

Parameters:
Name Type Description
info object

(inner) participantAddFromCurrentSelection()

Source:

Add participant from the currently selected options

(async, inner) participantAddToForm(selectionTypeValue, selectionValue, selectedRole, canRemove) → {Promise.<void>}

Source:

Add rows to the participant list depending on the current selection.

Parameters:
Name Type Description
selectionTypeValue string
selectionValue string
selectedRole string
canRemove boolean
Returns:
Type
Promise.<void>

(inner) participantListInit()

Source:

Init the participant list

(inner) participantListRoleUpdate(type, id)

Source:

Role update

Parameters:
Name Type Description
type string
id string

(inner) participantListUpdate(list)

Source:

Update the related form element with the list value.

Parameters:
Name Type Description
list object

(inner) participantRemove(selectionTypeValue, selectionValue)

Source:

Remove participant both in the table/form and in the form element.

Parameters:
Name Type Description
selectionTypeValue string
selectionValue string

(inner) updateSelectionFromType(currentTypeSelect)

Source:

Update selectable options when changing types

Parameters:
Name Type Description
currentTypeSelect HTMLNode