/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/ |
H A D | dom_dialog.cpp | 53 dialog.dialogHeight_.first = dialog.ParseDimension(val); in SetSpecializedStyle() 58 dialog.marginBottom_ = dialog.ParseDimension(val); in SetSpecializedStyle() 63 if (dialog.IsRightToLeft()) { in SetSpecializedStyle() 64 dialog.marginLeft_ = dialog.ParseDimension(val); in SetSpecializedStyle() 66 dialog.marginRight_ = dialog.ParseDimension(val); in SetSpecializedStyle() 72 dialog.marginLeft_ = dialog.ParseDimension(val); in SetSpecializedStyle() 77 dialog.marginRight_ = dialog.ParseDimension(val); in SetSpecializedStyle() 83 dialog.marginRight_ = dialog.ParseDimension(val); in SetSpecializedStyle() 85 dialog.marginLeft_ = dialog.ParseDimension(val); in SetSpecializedStyle() 91 dialog.marginTop_ = dialog.ParseDimension(val); in SetSpecializedStyle() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/dialog_tween/ |
H A D | render_dialog_tween.cpp | 41 if (dialog) { in RenderDialogTween() 48 if (dialog) { in RenderDialogTween() 55 if (dialog->maskDragRegion_.ContainsInRegion(dialog->dragX_, dialog->dragY_)) { in RenderDialogTween() 64 if (dialog) { in RenderDialogTween() 76 if (dialog) { in RenderDialogTween() 77 if (dialog->isDragable_ && dialog->isDragging_) { in RenderDialogTween() 110 if (!dialog) { in Update() 136 if (dialog->IsMenu()) { in Update() 155 BindButtonEvent(dialog); in Update() 227 if (!dialog) { in CallOnSuccess() [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/ |
H A D | _ark_u_i___native_dialog_a_p_i__1.md | 6 Provides the custom dialog box APIs for the native side. 49 Closes a custom dialog box. If the dialog box has been closed, this API does not take effect. 69 Creates a custom dialog box and returns the pointer to the created dialog box. 87 Destroys a custom dialog box. 178 Removes the content of a custom dialog box. 251 Sets the background color for a custom dialog box. 276 Sets the content for a custom dialog box. 301 Sets the alignment mode for a custom dialog box. 381 Sets the mask for a custom dialog box. 407 Sets the modal mode for a custom dialog box. [all …]
|
H A D | js-apis-promptAction.md | 488 Opens a custom dialog box. 548 Text('In-component dialog box') 557 console.log("dialog onWillDismiss") 586 Text('Custom dialog Message').fontSize(10) 653 Closes the specified custom dialog box. 712 Describes the options for showing the dialog box. 734 Describes the dialog box response result. 785 …dialog box.<br>**NOTE**<br>- Default maximum width of the dialog box: 400 vp<br>- When this parame… 792 Defines the options of the dialog box. 803 … | No | Whether the dialog box is a modal. A modal dialog box has a mask applied, whi… [all …]
|
H A D | native__dialog_8h.md | 6 Declares a set of custom dialog box APIs of ArkUI on the native side. 24 …(_ark_u_i___native_dialog_a_p_i__1.md) | Defines a struct for the custom dialog box APIs on the na… 31 …e_module.md#arkui_onwilldismissevent)) (int32_t reason) | Invoked when the dialog box is closed. | 32 …_i___native_module.md#arkui_dialogdismissevent) | Defines a struct for a dialog box dismiss event.… 39 …ark_u_i___native_module.md) } | Enumerates the actions for triggering closure of the dialog box. | 46 …bool shouldBlockDismiss) | Sets whether to block the system behavior of dismissing a dialog box. | 47 …kui_dialogdismissevent) \*event) | Obtains the pointer to user data in a dialog box dismiss event … 48 …arkui_dialogdismissevent) \*event) | Obtains the dismissal reason from a dialog box dismiss event …
|
/ohos5.0/docs/en/application-dev/ui/ |
H A D | arkts-base-dialog-overview.md | 3 …dialog box is a modal window designed to temporarily display information or pending operations tha… 5 * Custom dialog box: allows you to pass in custom components to define the appearance and behavior … 6 * Fixed-style dialog box: offers a predefined structure for simple and standard interactions. Avail… 12 …dialog box independent of UI components (openCustomDialog)](arkts-uicontext-custom-dialog.md)| Use… 13 …om dialog box (CustomDialog)](arkts-common-components-custom-dialog.md)| Used when you need to cus… 14 …dialog box (AlertDialog)](arkts-fixes-style-dialog.md#alert-dialog-box-alertdialog)| Usually used … 15 | [Action sheet (ActionSheet)](arkts-fixes-style-dialog.md#action-sheet-actionsheet)| Used when the… 16 |[Picker dialog box (PickerDialog)](arkts-fixes-style-dialog.md#picker-dialog-box-pickerdialog)| Us… 17 …s-fixes-style-dialog.md#common-dialog-box-showdialog)| Used when processing of results returned as… 18 | [Action menu (showActionMenu)](arkts-fixes-style-dialog.md#action-menu-showactionmenu)| Used when… [all …]
|
H A D | ui-js-components-dialog.md | 1 # <dialog> Development 4 …dialog>** component is custom pop-up container for showing critical information or calling for … 7 ## Creating a <dialog> Component 16 <text>this is a dialog</text> 18 </dialog> 59 //Touch to open the dialog box. 71 …user touches a non-dialog area to cancel the pop-up dialog box. Add the **show** and **close** met… 79 <text>dialog</text> 82 </dialog> 183 <dialog id="datedialog" oncancel="canceldialog" > [all …]
|
H A D | ndk-build-pop-up-window.md | 4 Display a custom dialog box using a dialog controller, which allows you to set the style and conten… 7 …dialog box APIs are defined within a struct named **ArkUI_NativeDialogAPI_*x***, where *x* represe… 12 - Create a dialog controller. 22 - Destroy a dialog controller. 23 …When dialog box operations are no longer needed, actively call the **dispose** API to destroy the … 33 …ffset, corner radius of the background, background color, mask color, and region of the dialog box. 35 1. Create a dialog box content node. 50 ArkUI_AttributeItem spanItem = {.string = "This is a dialog box"}; 69 2. Control dialog box styles with the controller. For details about the available dialog box APIs, … 88 3. Close the dialog box when it is not needed. [all …]
|
H A D | arkts-common-components-custom-dialog.md | 2 …dialog box is a dialog box you customize by using APIs of the **CustomDialogController** class. It… 6 …dialog boxes do not close automatically when you switch pages unless you manually call **close**. … 8 …ty of a dialog box by setting [isModal](../reference/apis-arkui/arkui-ts/ts-methods-custom-dialog-… 12 …e the \@CustomDialog decorator to create a custom dialog box. You can define the content of the di… 41 3. Click the component bound to the **onClick** event to display the dialog box. 66 Custom dialog boxes can be used for data interactions to complete a series of operations. 261 You can define the custom dialog box animation, including its duration and speed, through **openAni… 322 …style parameters, such as the width, height, background color, and shadow, for a custom dialog box. 380 …dialog box (dialog 2) inside another dialog box (dialog 1), it is recommended that you define dial… 386 @State message: string = "I'm the second dialog box." [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/dialog/ |
H A D | custom_dialog_controller_model_ng.cpp | 58 RefPtr<NG::FrameNode> dialog; in SetOpenDialog() local 67 CHECK_NULL_VOID(dialog); in SetOpenDialog() 77 CHECK_NULL_VOID(dialog); in SetOpenDialog() 78 dialogs.emplace_back(dialog); in SetOpenDialog() 100 RefPtr<NG::FrameNode> dialog; in SetOpenDialogWithNode() local 109 CHECK_NULL_RETURN(mask, dialog); in SetOpenDialogWithNode() 115 return dialog; in SetOpenDialogWithNode() 146 RefPtr<NG::FrameNode> dialog; in SetCloseDialog() local 149 if (dialog && !dialog->IsRemoving()) { in SetCloseDialog() 158 CHECK_NULL_VOID(dialog); in SetCloseDialog() [all …]
|
H A D | dialog_view.cpp | 54 RefPtr<FrameNode> dialog = FrameNode::CreateFrameNode(tag, nodeId, in CreateDialogNode() local 60 auto dialogLayoutProp = AceType::DynamicCast<DialogLayoutProperty>(dialog->GetLayoutProperty()); in CreateDialogNode() 61 CHECK_NULL_RETURN(dialogLayoutProp, dialog); in CreateDialogNode() 83 auto dialogContext = dialog->GetRenderContext(); in CreateDialogNode() 84 CHECK_NULL_RETURN(dialogContext, dialog); in CreateDialogNode() 85 auto pattern = dialog->GetPattern<DialogPattern>(); in CreateDialogNode() 86 CHECK_NULL_RETURN(pattern, dialog); in CreateDialogNode() 100 auto hub = dialog->GetEventHub<DialogEventHub>(); in CreateDialogNode() 101 CHECK_NULL_RETURN(hub, dialog); in CreateDialogNode() 117 dialog->MarkModifyDone(); in CreateDialogNode() [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-js/ |
H A D | js-components-container-dialog.md | 1 # dialog chapter 7 The **\<dialog>** component is a custom dialog box. 43 … | - | Triggered when a user touches an area outside the dialog box to cancel the dialog box.| 54 | show | - | Shows a dialog box.| 55 | close | - | Close the dialog box.| 70 <dialog id="simpledialog" dragable="true" class="dialog-main" oncancel="cancelDialog"> 71 <div class="dialog-div"> 73 <text class="txt" ondoubleclick="doubleclick">Simple dialog</text> 80 </dialog> 107 .dialog-main { [all …]
|
/ohos5.0/docs/zh-cn/application-dev/ui/ |
H A D | ui-js-components-dialog.md | 1 # dialog开发指导 3 dialog组件用于创建自定义弹窗,通常用来展示用户当前需要或用户必须关注的信息或操作。具体用法请参考[dialog API](../reference/apis-arkui/arkui-js/js… 6 ## 创建dialog组件 8 在pages/index目录下的hml文件中创建一个dialog组件,并添加Button组件来触发dialog。dialog组件仅支持width、height、margin、margin-[left… 16 </dialog> 69 开发者点击页面上非dialog的区域时,将触发cancel事件而关闭弹窗。同时也可以通过对dialog添加show和close方法来显示和关闭弹窗。 77 <text>dialog</text> 80 </dialog> 151 > - dialog属性、样式均不支持动态更新。 192 </dialog> [all …]
|
H A D | arkts-base-dialog-overview.md | 12 |[不依赖UI组件的自定义弹出框 (openCustomDialog)](arkts-uicontext-custom-dialog.md) | 当用户需要在自定义弹出框内动态更新弹出框属性时使用。… 13 |[基础自定义弹出框 (CustomDialog)](arkts-common-components-custom-dialog.md) | 当用户需要自定义弹出框内的组件和内容时使用。 | 14 | [警告弹窗 (AlertDialog)](arkts-fixes-style-dialog.md#警告弹窗-alertdialog) | 固定样式,通常用来展示用户当前需要或必须关注的信息或操作… 15 | [列表选择弹窗 (ActionSheet)](arkts-fixes-style-dialog.md#列表选择弹窗-actionsheet) | 固定样式,当用户需要关注或确认的信息存在列表选择… 16 |[选择器弹窗 (PickerDialog)](arkts-fixes-style-dialog.md#选择器弹窗-pickerdialog) | 固定样式,当用户需要在弹出框内选择日期、时间和文本… 17 | [对话框 (showDialog)](arkts-fixes-style-dialog.md#对话框-showdialog) | 固定样式,当用户需要对在弹出框响应后异步返回结果进行处理时使用。… 18 | [操作菜单 (showActionMenu)](arkts-fixes-style-dialog.md#操作菜单-showactionmenu) | 固定样式,当用户需要对在操作菜单响应后异步返…
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/overlay/ |
H A D | overlay_dialog_transition_test_ng.cpp | 249 ASSERT_NE(dialog, nullptr); 287 ASSERT_NE(dialog, nullptr); 332 ASSERT_NE(dialog, nullptr); 383 ASSERT_NE(dialog, nullptr); 439 ASSERT_NE(dialog, nullptr); 495 ASSERT_NE(dialog, nullptr); 551 ASSERT_NE(dialog, nullptr); 608 ASSERT_NE(dialog, nullptr); 665 ASSERT_NE(dialog, nullptr); 727 ASSERT_NE(dialog, nullptr); [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-methods-custom-dialog-box.md | 3 …dialog box is a dialog box you customize by using APIs of the **CustomDialogController** class. Yo… 14 Defines a custom dialog box. 65 > - Pressing the Back or ESC key closes the dialog box. 118 Closes the custom dialog box. If the dialog box is closed, this API does not take effect. 131 Text('I'm the second dialog box') 154 console.log("dialog onWillDismiss") 223 console.log("dialog onWillDismiss") 307 console.log("dialog onWillDismiss") 368 Text('This is a custom dialog box') 393 console.log("dialog onWillDismiss") [all …]
|
H A D | ts-methods-alert-dialog-box.md | 19 Shows an alert dialog box. 243 Button('one button dialog') 265 console.log("dialog onWillDismiss") 277 Button('two button dialog') 309 console.log("dialog onWillDismiss") 320 Button('three button dialog') 361 console.log("dialog onWillDismiss") 394 Button('one button dialog') 437 console.log("dialog onWillDismiss") 517 Button('one button dialog') [all …]
|
H A D | ohos-arkui-advanced-Dialog.md | 33 Displays an image-attached confirmation dialog box. If necessary, the confirmation dialog box can b… 61 Displays a dialog box from which the user can select options presented in a list or grid. 128 Displays a loading dialog box to inform the user of the operation progress. 146 Displays a dialog box that contains custom content and operation area. 171 Displays a popover dialog box that is positioned relative to the target component. This dialog box … 181 …es| \@Link | Whether the popover dialog box is visible.<br>Default value: **false**, indicating th… 205 Defines a set of options used to configure the popover dialog box, including its content and positi… 470 This example implements a loading dialog box that contains a progress indicator. 540 Button('dialog') 597 This example implements a dialog box with custom content defined with **contentBuilder** and **butt… [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/custom_dialog/ |
H A D | custom_dialog_element.cpp | 37 auto dialog = weak.Upgrade(); in PerformBuild() local 38 if (dialog) { in PerformBuild() 39 dialog->ShowDialog(); in PerformBuild() 40 if (dialog->onShow_) { in PerformBuild() 41 dialog->onShow_(); in PerformBuild() 46 auto dialog = weak.Upgrade(); in PerformBuild() local 47 if (dialog) { in PerformBuild() 48 dialog->CloseDialog(); in PerformBuild() 49 if (dialog->onClose_) { in PerformBuild() 50 dialog->onClose_(); in PerformBuild()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/ |
H A D | alertdialog_composed_element.cpp | 105 for (const auto &dialog : confirm) { in GetConfirm() local 107 item->Put("value", dialog.text.c_str()); in GetConfirm() 108 item->Put("fontColor", dialog.textColor.c_str()); in GetConfirm() 109 item->Put("backgroundColor", ConvertColorToString(dialog.bgColor).c_str()); in GetConfirm() 148 for (const auto &dialog : primary) { in GetPrimaryButton() local 150 item->Put("value", dialog.text.c_str()); in GetPrimaryButton() 151 item->Put("fontColor", dialog.textColor.c_str()); in GetPrimaryButton() 152 item->Put("backgroundColor", ConvertColorToString(dialog.bgColor).c_str()); in GetPrimaryButton() 166 for (const auto &dialog : secondary) { in GetSecondaryButton() local 168 item->Put("value", dialog.text.c_str()); in GetSecondaryButton() [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js/ |
H A D | js-components-container-dialog.md | 1 # dialog chapter 42 | cancel | - | 用户点击非dialog区域触发取消弹窗时触发的事件。 | 57 > dialog属性、样式均不支持动态更新。 68 <dialog id="simpledialog" dragable="true" class="dialog-main" oncancel="cancelDialog"> 69 <div class="dialog-div"> 71 <text class="txt" ondoubleclick="doubleclick">Simple dialog</text> 78 </dialog> 105 .dialog-main { 108 .dialog-div {
|
/ohos5.0/docs/en/application-dev/reference/apis-ability-kit/ |
H A D | js-apis-app-ability-dialogRequest.md | 3 …ovides APIs related to modal dialog box processing, including obtaining the request information (u… 4 …dialog box is a system pop-up box that intercepts events (such as mouse, keyboard, and touchscreen… 115 Defines the location attributes of a modal dialog box. 123 | left | number | Yes | X-coordinate of the upper left corner of the dialog box.| 124 | top | number | Yes | Y-coordinate of the upper left corner of the dialog box.| 125 | width | number | Yes | Width of the dialog box.| 126 | height | number | Yes | Height of the dialog box.| 130 Defines the request information, which is used as an input parameter for binding the modal dialog b… 159 Enumerates the result codes of the request for the modal dialog box. 184 Provides a callback for setting the modal dialog box request result. [all …]
|
/ohos5.0/foundation/arkui/ace_engine/advanced_ui_component/dialog/interfaces/ |
H A D | BUILD.gn | 21 src_js = rebase_path("dialog.js") 22 dst_file = rebase_path(target_out_dir + "/dialog.abc") 23 in_puts = [ "dialog.js" ] 24 out_puts = [ target_out_dir + "/dialog.abc" ] 29 input = get_label_info(":gen_dialog_abc", "target_out_dir") + "/dialog.abc" 35 input = get_label_info(":gen_dialog_abc", "target_out_dir") + "/dialog.abc" 40 ohos_shared_library("dialog") { 41 sources = [ "dialog.cpp" ]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/dialog/ |
H A D | dialog_test_ng.cpp | 384 ASSERT_NE(dialog, nullptr); 414 ASSERT_NE(dialog, nullptr); 447 ASSERT_NE(dialog, nullptr); 476 ASSERT_NE(dialog, nullptr); 646 …AceType::MakeRefPtr<LayoutWrapperNode>(dialog, dialog->GetGeometryNode(), dialog->GetLayoutPropert… 966 ASSERT_NE(dialog, nullptr); 985 ASSERT_NE(dialog, nullptr); 1117 …AceType::MakeRefPtr<LayoutWrapperNode>(dialog, dialog->GetGeometryNode(), dialog->GetLayoutPropert… 1793 …AceType::MakeRefPtr<LayoutWrapperNode>(dialog, dialog->GetGeometryNode(), dialog->GetLayoutPropert… 1861 …AceType::MakeRefPtr<LayoutWrapperNode>(dialog, dialog->GetGeometryNode(), dialog->GetLayoutPropert… [all …]
|
H A D | dialog_model_test_ng.cpp | 368 auto dialog = variable 370 ASSERT_NE(dialog, nullptr); 466 ASSERT_NE(dialog, nullptr); 510 ASSERT_NE(dialog, nullptr); 1032 ASSERT_NE(dialog, nullptr); 1083 ASSERT_NE(dialog, nullptr); 1122 ASSERT_NE(dialog, nullptr); 1165 ASSERT_NE(dialog, nullptr); 1185 ASSERT_NE(dialog, nullptr); 1217 ASSERT_NE(dialog, nullptr); [all …]
|