Shows a tooltip containing a Ok and Cancel button.
Pass a widget (or a string if its content should be text-only) in this widgets' "content" parameter.
This represents the content of the dialog.
Use the "onConfirm" and "onCancel" events to act upon the users' choice.
Example
define([
"blueconic/api/widgets/dialog/ConfirmationTooltipDialog"
], function(ConfirmationTooltipDialog) {
var confirmationTooltipDialog = new ConfirmationTooltipDialog();
// ...
});
Extends
Properties
-
className String
-
Additional classname of the tooltip container.
-
content String
-
The widget (or text) used for the tooltip content.
Events
-
onCancel()
-
Called when the 'Cancel' button is clicked, when Esc is pressed or when the page body outside the dialog is clicked.
-
onConfirm()
-
Called when the 'OK' button is clicked.