Skip to content

classes_lib_jquery ui_dialog_uiconfirmation.class

Daniel Spors edited this page Dec 19, 2023 · 3 revisions

Classes in file lib/jquery-ui/dialog/uiconfirmation.class.php

class uiConfirmation

Displays a confirmation dialog. This is basically a normal modal uiDialog with a predefined set of buttons.

Extends: uiDialog » uiControl » Control » Renderable

SetOkCallback

Set the callback for the positive button.

Definition: public function SetOkCallback($action)

Returns: static

Parameters:

  • string $action JS code to be executed when the positive button is clicked (OK, YES)

__construct

Creates a new uiConfirmation object. The $text_base argument in fact defines two texts in one (and assumes you are using translations!): It will be prefixed with 'TXT_' and 'TITLE_' and that two constants will be used. Sample: 'CONFIRMATION' will become 'TXT_CONFIRMATION' and 'TITLE_CONFIRMATION'.

Definition: public function __construct($text_base, $ok_callback=false, $button_mode=self)

Returns: NOT DOCUMENTED

Parameters:

  • string $text_base base of confirmation text.

  • string $ok_callback JS code to be executed when the positive button is clicked (OK, YES)

  • int $button_mode uiConfirmation::OK_CANCEL or uiConfirmation::YES_NO

Clone this wiki locally