new Dialog(name, title, content, $element)
Creates a new popup dialog over the H5P content.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Used for html class. |
title |
string | Used for header. |
content |
string | Displayed inside the dialog. |
$element |
H5P.jQuery | Which DOM element the dialog should be inserted after. |
Methods
-
close()
-
Closes the dialog.
-
open()
-
Opens the dialog.