You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: guides/v2.2/javascript-dev-guide/widgets/widget_prompt.md
+17-16Lines changed: 17 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ It extends the [Magento modal widget].
12
12
13
13
The prompt widget source is [`<Magento_Ui_module_dir>/view/base/web/js/modal/prompt.js`].
14
14
15
-
The widget can be used for implementing prompt windows for both, Admin and [storefront](https://glossary.magento.com/storefront). The design patterns for the modal pop-up windows in the Admin are described in the [Magento Admin Pattern Library, the Slide-out Panels, Modal Windows, and Overlays topic.]
15
+
The widget can be used for implementing prompt windows for both, admin and [storefront](https://glossary.magento.com/storefront). The design patterns for the modal pop-up windows in the admin are described in the [Magento Admin Pattern Library, the Slide-out Panels, Modal Windows, and Overlays topic.]
16
16
17
17
## Initialize the prompt widget {#prompt_init}
18
18
@@ -55,27 +55,28 @@ For details about how to initialize a widget in a `.phtml` template, refer to th
55
55
56
56
## Options {#prompt_options}
57
57
58
-
-[actions](#prompt_actions)
59
-
-[autoOpen](#prompt_autoopen)
60
-
-[clickableOverlay](#prompt_clickableOverlay)
61
-
-[content](#prompt_content)
62
-
-[focus](#prompt_focus)
63
-
-[title](#prompt_title)
64
-
-[modalClass](#prompt_modalClass)
65
-
-[promptContentTmpl](#prompt_promptContentTmpl)
66
-
-[value](#prompt_value)
67
-
-[promptField](#prompt_promptField)
68
-
-[attributesForm](#prompt_attributesForm)
69
-
-[attributesField](#prompt_attributesField)
70
-
-[validation](#prompt_validation)
71
-
-[validationRules](#prompt_validationRules)
58
+
-[actions](#prompt_actions)
59
+
-[autoOpen](#prompt_autoopen)
60
+
-[clickableOverlay](#prompt_clickableOverlay)
61
+
-[content](#prompt_content)
62
+
-[focus](#prompt_focus)
63
+
-[title](#prompt_title)
64
+
-[modalClass](#prompt_modalClass)
65
+
-[promptContentTmpl](#prompt_promptContentTmpl)
66
+
-[value](#prompt_value)
67
+
-[promptField](#prompt_promptField)
68
+
-[attributesForm](#prompt_attributesForm)
69
+
-[attributesField](#prompt_attributesField)
70
+
-[validation](#prompt_validation)
71
+
-[validationRules](#prompt_validationRules)
72
72
73
73
### `actions` {#prompt_actions}
74
74
Widget callbacks.
75
75
76
76
**Type**: Object.
77
77
78
78
**Default value**:
79
+
79
80
```javascript
80
81
actions: {
81
82
confirm:function(){},
@@ -256,7 +257,7 @@ The keyboard navigation for the alert windows is similar to the [navigation of t
256
257
257
258
```html
258
259
<divclass="prompt-modal-content">
259
-
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Adipisci amet aut consequuntur culpa cum, distinctio earum harum, iste magnam nobis numquam pariatur tempora ullam vero vitae. Hic ipsam itaque velit.</p>
260
+
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
0 commit comments