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 dialoglinkArg(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
openDialog | openSizedDialog | openFullDialog | |
|---|---|---|---|
| Sizing | Width only, via options | width / height passed directly | Full screen |
| Transition | Default | Default | Zoom transition |
barrierDismissible default | false | false | true (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