Class: ModalDialog

Cadcorp.UI.ModalDialog

new ModalDialog(config)

Show a modal dialog. 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

Members

dialogOptions

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

message

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

parentElementId

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

titleText

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

Methods

close()

Close this dialog.

destroy()

Destroys this dialog

setMessage(message)

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

setTitle(title)

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

show()

Shows this dialog.