openDialog
packages | @univerjs/preset-sheets-core | @univerjs/preset-docs-core | @univerjs/ui |
---|
univerAPI.openDialog(options)
IDialogPartMethodOptions
Prop | Type | Default |
---|---|---|
id | string | - |
children? | ICustomLabelProps | - |
title? | ICustomLabelProps | - |
footer? | ICustomLabelProps | - |
style? | CSSProperties | - |
open? | boolean | false |
width? | string | number | - |
draggable? | boolean | false |
defaultPosition? | { x: number; y: number; } | - |
destroyOnClose? | boolean | false |
preservePositionOnDestroy? | boolean | false |
mask? | boolean | - |
className? | string | - |
closable? | boolean | - |
maskClosable? | boolean | - |
keyboard? | boolean | true |
onOpenChange? | ((open: boolean) => void) | - |
onClose? | (() => void) | - |
showOk? | boolean | - |
showCancel? | boolean | - |
onOk? | (() => void) | - |
onCancel? | (() => void) | - |
Returns
Prop | Type | Default |
---|---|---|
dispose | () => void | - |