dijit/_DialogMixin (version 1.10)

Summary

This provides functions useful to Dialog and TooltipDialog

See the dijit/_DialogMixin reference documentation for more information.

Property Summary

  • actionBarTemplateHTML snippet to show the action bar (gray bar with OK/cancel buttons).

Method Summary

  • _getFocusItems() Finds focusable items in dialog, and sets this._firstFocusItem and this._lastFocusItem
  • execute(formContents) Callback when the user hits the submit button.

Event Summary

  • _onSubmit() Callback when user hits submit button
  • onCancel() Called when user has pressed the Dialog's cancel button, to notify container.
  • onExecute() Called when user has pressed the dialog's OK button, to notify container.

Properties

actionBarTemplate
Defined by: dijit/_DialogMixin

HTML snippet to show the action bar (gray bar with OK/cancel buttons). Blank by default, but used by ConfirmDialog/ConfirmTooltipDialog subclasses.

Methods

_getFocusItems()
Defined by dijit/_DialogMixin

Finds focusable items in dialog, and sets this._firstFocusItem and this._lastFocusItem

execute(formContents)
Defined by dijit/_DialogMixin

Callback when the user hits the submit button. Override this method to handle Dialog execution.

After the user has pressed the submit button, the Dialog first calls onExecute() to notify the container to hide the dialog and restore focus to wherever it used to be.

Then this method is called.

Parameter Type Description
formContents Object

Events

_onSubmit()
Defined by: dijit/_DialogMixin

Callback when user hits submit button

onCancel()
Defined by: dijit/_DialogMixin

Called when user has pressed the Dialog's cancel button, to notify container.

Developer shouldn't override or connect to this method; it's a private communication device between the TooltipDialog and the thing that opened it (ex: dijit/form/DropDownButton)

onExecute()
Defined by: dijit/_DialogMixin

Called when user has pressed the dialog's OK button, to notify container.

Developer shouldn't override or connect to this method; it's a private communication device between the TooltipDialog and the thing that opened it (ex: dijit/form/DropDownButton)

Error in the documentation? Can’t find what you are looking for? Let us know!