- Description:
JS for the mod_form page on mod_bigbluebuttonbn plugin.
- Source:
- Copyright:
- 2021 Blindside Networks Inc
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
JS for the mod_form page on mod_bigbluebuttonbn plugin.
Members
(inner, constant) ELEMENT_SELECTOR
- Description:
Get all selectors in one place.
- Source:
Get all selectors in one place.
Methods
(inner) applyInstanceTypeProfile(profileType, isFeatureEnabled)
- Description:
Show or hide form element depending on the selected profile
- Source:
Parameters:
Name | Type | Description |
---|---|---|
profileType |
string | |
isFeatureEnabled |
function |
(inner) getParticipantList() → {any}
Returns:
- Type
- any
(inner) init(info)
- Description:
Initialise the moodle form code.
This will help hide or show items depending on the selection of the instance type.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
info |
object |
(inner) participantAddFromCurrentSelection()
- Description:
Add participant from the currently selected options
- Source:
(async, inner) participantAddToForm(selectionTypeValue, selectionValue, selectedRole, canRemove) → {Promise.<void>}
- Description:
Add rows to the participant list depending on the current selection.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
selectionTypeValue |
string | |
selectionValue |
string | |
selectedRole |
string | |
canRemove |
boolean |
Returns:
- Type
- Promise.<void>
(inner) participantListInit()
- Description:
Init the participant list
- Source:
(inner) participantListRoleUpdate(type, id)
- Description:
Role update
- Source:
Parameters:
Name | Type | Description |
---|---|---|
type |
string | |
id |
string |
(inner) participantListUpdate(list)
- Description:
Update the related form element with the list value.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
list |
object |
(inner) participantRemove(selectionTypeValue, selectionValue)
- Description:
Remove participant both in the table/form and in the form element.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
selectionTypeValue |
string | |
selectionValue |
string |
(inner) updateSelectionFromType(currentTypeSelect)
- Description:
Update selectable options when changing types
- Source:
Parameters:
Name | Type | Description |
---|---|---|
currentTypeSelect |
HTMLNode |