-
Improvement
-
Resolution: Fixed
-
Minor
-
3.2
-
MOODLE_32_STABLE
-
MOODLE_33_STABLE
-
MDL-57280-master -
When writing the docs for the AMD modal I realised there was too much heavy lifting required if someone wanted to create an adhoc modal type just for use within their plugin or what ever.
They would need to handle all of the creation and focus management and stuff themselves because the factory only worked for hardcoded core modal types.
Instead the factory should use a modal types registry, rather than a hardcoded list, that allows people to register their own modal types at run time and leverage the functionality of the factory to created them.