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 sheetlinkArg(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 pixelstop(number, optional): Top coordinate of the highlight region, in logical pixelswidth(number, optional): Width of the highlight region, in logical pixelsheight(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
openSheet | openModalSheet | |
|---|---|---|
| Modal | Non-modal | Modal |
| Background overlay | None | Dimmed overlay |
| Highlight region | Not supported | Supported (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