Skip to content

Commit d74e530

Browse files
line 11
1 parent e76aa9e commit d74e530

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • 2-ui/4-forms-controls/4-forms-submit/1-modal-dialog

2-ui/4-forms-controls/4-forms-submit/1-modal-dialog/task.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ importance: 5
44

55
# Modal form
66

7-
Create a function `showPrompt(html, callback)` that shows a form with the message `html`, an input field and buttons `OK/CANCEL`.
7+
یک function `showPrompt(html, callback)` ایجاد کنید که فرمی با پیام `html`، یک input field و دکمه‌های `OK/CANCEL` داشته باشد.
88

9-
- A user should type something into a text field and press `key:Enter` or the OK button, then `callback(value)` is called with the value they entered.
9+
- یک کاربر باید چیزی را در tex field تایپ کند و `key:Enter` را فشار دهد، آنگاه `callback(value)` با مقداری که وارد شده است فراخوانی می‌شود.
1010
- Otherwise if the user presses `key:Esc` or CANCEL, then `callback(null)` is called.
11+
- در غیر این صورت اگر کاربر `key:Esc` یا CANCEL را فشار دهد، `callback(null)` فراخوانی می‌شود.
1112

1213
In both cases that ends the input process and removes the form.
1314

0 commit comments

Comments
 (0)