mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-08 07:36:38 +00:00
commit
caefa9b3f7
44
api/@ohos.arkui.UIContext.d.ts
vendored
44
api/@ohos.arkui.UIContext.d.ts
vendored
@ -961,6 +961,50 @@ export class PromptAction {
|
||||
* @since 11
|
||||
*/
|
||||
showActionMenu(options: promptAction.ActionMenuOptions): Promise<promptAction.ActionMenuSuccessResponse>;
|
||||
|
||||
/**
|
||||
* Open the custom dialog with frameNode.
|
||||
*
|
||||
* @param { ComponentContent } dialogContent - the content of custom dialog.
|
||||
* @param { promptAction.BaseDialogOptions } options - Options.
|
||||
* @returns { Promise<void> } the promise returned by the function.
|
||||
* @throws { BusinessError } 401 - if the number of parameters or the type of parameters is incorrect.
|
||||
* @throws { BusinessError } 103301 - the ComponentContent is incorrect.
|
||||
* @throws { BusinessError } 103302 - the ComponentContent has already been opened.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
openCustomDialog(dialogContent: ComponentContent, options?: promptAction.BaseDialogOptions): Promise<void>;
|
||||
|
||||
/**
|
||||
* Update the custom dialog with frameNode.
|
||||
*
|
||||
* @param { ComponentContent } dialogContent - the content of custom dialog.
|
||||
* @param { promptAction.BaseDialogOptions } options - Options.
|
||||
* @returns { Promise<void> } the promise returned by the function.
|
||||
* @throws { BusinessError } 401 - if the number of parameters or the type of parameters is incorrect.
|
||||
* @throws { BusinessError } 103301 - the ComponentContent is incorrect.
|
||||
* @throws { BusinessError } 103303 - the ComponentContent cannot be found.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
updateCustomDialog(dialogContent: ComponentContent, options: promptAction.BaseDialogOptions): Promise<void>;
|
||||
|
||||
/**
|
||||
* Close the custom dialog with frameNode.
|
||||
*
|
||||
* @param { ComponentContent } dialogContent - the content of custom dialog.
|
||||
* @returns { Promise<void> } the promise returned by the function.
|
||||
* @throws { BusinessError } 401 - if the number of parameters or the type of parameters is incorrect.
|
||||
* @throws { BusinessError } 103301 - the ComponentContent is incorrect.
|
||||
* @throws { BusinessError } 103303 - the ComponentContent cannot be found.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
closeCustomDialog(dialogContent: ComponentContent): Promise<void>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
71
api/@ohos.promptAction.d.ts
vendored
71
api/@ohos.promptAction.d.ts
vendored
@ -668,6 +668,37 @@ declare namespace promptAction {
|
||||
* @since 12
|
||||
*/
|
||||
isModal?: boolean;
|
||||
|
||||
/**
|
||||
* Allows users to click the mask layer to exit.
|
||||
*
|
||||
* @type { ?boolean }
|
||||
* @default true
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
autoCancel?: boolean;
|
||||
|
||||
/**
|
||||
* Transition parameters of opening/closing custom dialog.
|
||||
*
|
||||
* @type { ?TransitionEffect }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
transition?: TransitionEffect;
|
||||
|
||||
/**
|
||||
* Defines custom dialog maskColor
|
||||
*
|
||||
* @type { ?ResourceColor }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
maskColor?: ResourceColor;
|
||||
|
||||
/**
|
||||
* Callback function when the CustomDialog interactive dismiss.
|
||||
@ -678,6 +709,46 @@ declare namespace promptAction {
|
||||
* @since 12
|
||||
*/
|
||||
onWillDismiss?: Callback<DismissDialogAction>;
|
||||
|
||||
/**
|
||||
* Callback function when the dialog appears.
|
||||
*
|
||||
* @type { ?function }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
onDidAppear?: () => void;
|
||||
|
||||
/**
|
||||
* Callback function when the dialog disappears.
|
||||
*
|
||||
* @type { ?function }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
onDidDisappear?: () => void;
|
||||
|
||||
/**
|
||||
* Callback function before the dialog openAnimation starts.
|
||||
*
|
||||
* @type { ?function }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
onWillAppear?: () => void;
|
||||
|
||||
/**
|
||||
* Callback function before the dialog closeAnimation starts.
|
||||
*
|
||||
* @type { ?function }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
onWillDisappear?: () => void;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user