Class: ConfirmDialog

Cadcorp.UI.ConfirmDialog

new ConfirmDialog(config)

Show a confirmation dialog.
A confirm dialog has 2 button, ok and cancel.
The dialog is enhanced by using the jQuery UI dialog widget
Parameters:
Name Type Description
config Object Configuration for this object. The config supplied directly extends the control

Extends

Members

cancelButtonText

Properties:
Name Type Description
cancelButtonText string The text for the cancel button

dialogOptions

Properties:
Name Type Description
dialogOptions Object Passed to the jQuery UI dialog constructor
Inherited From:

message

Properties:
Name Type Description
message string The message to display in this dialog
Inherited From:

okButtonText

Properties:
Name Type Description
okButtonText string The text for the Ok button

parentElementId

Properties:
Name Type Description
parentElementId string The Id of the owner element
Inherited From:

titleText

Properties:
Name Type Description
titleText string The title text for this dialog
Inherited From:

Methods

close()

Close this dialog.
Inherited From:

destroy()

Destroys this dialog
Overrides:

setMessage(message)

Sets the message for this dialog
Parameters:
Name Type Description
message string The message to set on this dialog
Inherited From:

setTitle(title)

Sets the title for this dialog
Parameters:
Name Type Description
title string The title to set on this dialog
Inherited From:

show()

Shows this dialog.
Inherited From:

Events

cancel

Fired when the cancel button is pressed
Type:
  • Object
Properties:
Name Type Description
object Cadcorp.UI.ConfirmDialog The sender of the event

ok

Fired when the ok button is pressed
Type:
  • Object
Properties:
Name Type Description
object Cadcorp.UI.ConfirmDialog The sender of the event