Skip to main content

openSizedDialog

openSizedDialog

Opens the given form as a centered modal dialog at an explicit size.

Parameters

  • formPath (string): The path or ID of the form to show in the dialog
  • linkArg (any): The argument to pass to the opened form (may be null)
  • width (number, optional): The dialog width in logical pixels (null fits the content)
  • height (number, optional): The dialog height in logical pixels (null fits the content)
  • callback (function): Callback that receives the result when the dialog closes (may be null)
  • barrierDismissible (boolean): Whether tapping the background closes it (default false)

Returns: None (void)

Description

Shows a fixed-size dialog centered on screen. Omitting width or height sizes it to the form's content instead.

openDialog vs openSizedDialog vs openFullDialog

openDialogopenSizedDialogopenFullDialog
SizingWidth only, via optionswidth / height passed directlyFull screen
TransitionDefaultDefaultZoom transition
barrierDismissible defaultfalsefalsetrue (ESC works)

Example

$form.openSizedDialog("dialogs/confirm", { id: 42 }, 320, 200,
function(result) {
$log.i("확인:", result?.confirmed);
}, false
);

Related

  • $form.openDialog(formPath, linkArg, callback, options) — options-based dialog
  • $form.openFullDialog(formPath, linkArg, callback) — full-screen dialog
  • $form.closeDialog(result) — closes the dialog from inside itself