Jet\UI_dialog

Dialog Renderer - modal window. It inherits from Jet\UI_Renderer_Pair.

Compared to the normal pair element (which has a beginning and an end), it also has a separator for the footer of the dialog - the area intended for buttons.

The default view implementation is again using Boostrap, but again, this is not dogma.

Predefined sizes

Constanta Value
UI_dialog::SIZE_SMALLsmall
UI_dialog::SIZE_DEFAULTdefault
UI_dialog::SIZE_LARGElarge
UI_dialog::SIZE_EXTRA_LARGEextra_large

Overview of methods

Method Meaning of
public __construct(
string $id,
string $title,
string $size=UI_dialog::SIZE_DEFAULT
)
Parameters:
  • $id
    Element ID - important to be able to operate with it via JavaScript
  • $title
    Title of the dialogue
  • $size
    Dialog size - one of the predefined constants (or your constant)
public getViewScriptFooter(
) : string
Returns the name of the view script that is responsible for the footer separator.
public setViewScriptFooter(
string $view_script_footer
) : void
Sets the name of the view script that is responsible for the footer separator.
public getTitle(
) : string
Returns the set dialog title
public getSize(
) : string
Returns the set dialog size
public footer(
) : string
Renders the footer separator
Previous chapter
Jet\UI_localeLabel
Next chapter
Jet\UI_icon