-
Notifications
You must be signed in to change notification settings - Fork 34
classes_lib_jquery ui_dialog_uiconfirmation.class
Displays a confirmation dialog. This is basically a normal modal uiDialog with a predefined set of buttons.
Extends: uiDialog » uiControl » Control » Renderable
Set the callback for the positive button.
Definition: public function SetOkCallback($action)
Returns: static
Parameters:
-
string $actionJS code to be executed when the positive button is clicked (OK, YES)
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_basebase of confirmation text. -
string $ok_callbackJS code to be executed when the positive button is clicked (OK, YES) -
int $button_modeuiConfirmation::OK_CANCEL or uiConfirmation::YES_NO