Skip to main content

openModalSheet

openModalSheet

Opens the given form as a modal bottom sheet, optionally highlighting a specific region of the background.

Parameters

  • formPath (string): The path or ID of the form to show in the sheet
  • linkArg (any): The argument to pass to the opened form (may be null)
  • callback (function): Callback that receives the result when the sheet closes (may be null)
  • left (number, optional): Left coordinate of the highlight region, in logical pixels
  • top (number, optional): Top coordinate of the highlight region, in logical pixels
  • width (number, optional): Width of the highlight region, in logical pixels
  • height (number, optional): Height of the highlight region, in logical pixels

Returns: None (void)

Description

Opens a modal bottom sheet with a dimmed overlay behind it. Provide all four of left, top, width, and height to leave that rectangle undimmed as a highlight — useful for calling out an anchor widget. Omit any one of them and the entire background dims.

openSheet vs openModalSheet

openSheetopenModalSheet
ModalNon-modalModal
Background overlayNoneDimmed overlay
Highlight regionNot supportedSupported (all of left/top/width/height required)

Example

// 기본 모달 시트
$form.openModalSheet("order/summary", null, function(result) {
$log.i("시트 닫힘:", result);
}, null, null, null, null);

// 특정 영역 하이라이트 (x:20, y:100, 200x50 영역)
$form.openModalSheet("confirm/dialog", null, function(result) {
$log.i("결과:", result);
}, 20, 100, 200, 50);

Related

  • $form.openSheet(formPath, linkArg, callback) — non-modal bottom sheet