- Description:
A type of dialogue used as for choosing options.
- Source:
- Copyright:
- 2019 Mihail Geshoski
- 2019 Mihail Geshoski
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
A type of dialogue used as for choosing options.
Methods
(inner) displayActivityChooser(footerDataPromise, modulesDataPromise)
- Description:
Display the activity chooser modal.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
footerDataPromise |
Promise | Promise for the footer data. |
modulesDataPromise |
Promise | Promise for the modules data. |
(inner) displayChooser(modalPromise, sectionModules, partialFavourite, footerData)
- Description:
Display the module chooser.
- Source:
- Deprecated:
- since Moodle 5.1
- To Do:
-
- Remove the method in Moodle 6.0 (MDL-85655).
Parameters:
Name | Type | Description |
---|---|---|
modalPromise |
Promise | Our created modal for the section |
sectionModules |
Array | An array of all of the built module information |
partialFavourite |
function | Partially applied function we need to manage favourite status |
footerData |
Object | Our base footer object. |
(inner) searchModules(searchTerm) → {Array}
- Description:
Return the list of modules which have a name or description that matches the given search term.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
searchTerm |
String | The search term to match |
Returns:
- Type
- Array
(inner) setupKeyboardAccessibility()
- Description:
Set up our tabindex information across the chooser.
- Source:
(inner) toggleSearchResultsView(searchQuery)
- Description:
Toggle (display/hide) the search results depending on the value of the search query
- Source:
Parameters:
Name | Type | Description |
---|---|---|
searchQuery |
String | The search query |