-
Notifications
You must be signed in to change notification settings - Fork 29
PKUI.MESSAGE.createBaseElements
(part of PKUI.MESSAGE)
Return Type: element
Parameters: title, text (both string)
Note: internal use only.
Creates the basic elements of a message box: the root element that surrounds the message box and is classed with pkui-alert-container
, the message box itself (pkui-alert
), the title (pkui-alert-title
), the text (pkui-alert-message
), and the button container (pkui-alert-action-container
). The root element is then returned to the invoking method in case the method wishes to do more with the element hierarchy.
The most basic hierarchy looks like this:
rootElement (div.pkui-alert-container)
alertElement (div.pkui-alert)
titleElement (div.pkui-alert-title)
msgElement (div.pkui-alert-message)
actionElement (div.pkui-alert-action-container)
The actionElement
most often contains the buttons, such as "OK" or "Cancel".
The PKUI.MESSAGE.Prompt message box adds an inputElement
(classed pkui-prompt-input
) prior to the actionElement
. It also adds the pkui-prompt
class to the alertElement
.
0.1 Introduced
0.2 Docs Valid