Modal in Moodle

Modal in Moodle

by Amit Ringola -
Number of replies: 2

How to create a modal (popup) in moodle using jquery. 

or any other way

Average of ratings: -
In reply to Amit Ringola

Re: Modal in Moodle

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

For simple things, look at the core/notifications AMD module. That has things like simple alerts and yes/no questions.

For anything more complex, you need to get into core/modal (which is what the notifications module uses internally, I think.)

In reply to Amit Ringola

Re: Modal in Moodle

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

It depends how and where you want to use them, but Moodle uses Boostrap and Bootstrap incorporates modals, so your theme/block/whatever could simply make use of bootstrap modals.