Members
-
<static> ModalSizes
-
Description
Sizes of modals.
Details
Methods
-
<static> showUserProfile( userId )
-
Description
Shows the user profile modal for a given user.
Parameters
Name Type Description userIdstring id of the user to show profile for
Details
-
<static> showConfirmationModal( title, content [, options ] )
-
Description
Acts as a wrapper for module:Modals.showModal where the
childrenis a text element.Parameters
Name Type Attributes Description titlestring title of the modal
contentstring text to show inside the modal. Can be markdown.
optionsobject <optional> Details
-
<static> showAlertModal( title, body )
-
Description
Shows a very simple alert modal that has title, content and an okay button.
Parameters
Name Type Description titlestring title of the modal
bodystring text to show inside the modal
Details
-
<static> showModal( title, children [, options ] )
-
Description
Shows a generic but very customizable modal.
Parameters
Name Type Attributes Description titlestring title of the modal
childrenReactElement | Array.<ReactElement> a single or array of rendered react elements to act as children
optionsobject <optional> options to modify the modal
Name Type Attributes Default Description dangerboolean <optional> false whether the main button should be red or not
confirmTextstring <optional> Okay text for the confirmation/submit button
cancelTextstring <optional> Cancel text for the cancel button
onConfirmcallable <optional> NOOP callback to occur when clicking the submit button
onCancelcallable <optional> NOOP callback to occur when clicking the cancel button
Details
-
<static> showChangelogModal( title, version, changelog, footer )
-
Description
Shows a changelog modal based on changelog data.
Parameters
Name Type Description titlestring title of the modal
versionstring subtitle (usually version or date) of the modal
changelogmodule:Modals~Changelog changelog to show inside the modal
footerstring either an html element or text to show in the footer of the modal. Can use markdown.
Details