File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,23 @@ interface MessageDialogOptions {
168
168
/**
169
169
* The buttons of the dialog.
170
170
*
171
+ * @example
172
+ *
173
+ * ```ts
174
+ * // Use system default buttons texts
175
+ * await message('Hello World!', { buttons: 'Ok' })
176
+ * await message('Hello World!', { buttons: 'OkCancel' })
177
+ *
178
+ * // Or with custom button texts
179
+ * await message('Hello World!', { buttons: { ok: 'Yes!' } })
180
+ * await message('Take on the task?', {
181
+ * buttons: { ok: 'Accept', cancel: 'Cancel' }
182
+ * })
183
+ * await message('Show the file content?', {
184
+ * buttons: { yes: 'Show content', no: 'Show in folder', cancel: 'Cancel' }
185
+ * })
186
+ * ```
187
+ *
171
188
* @since 2.4.0
172
189
*/
173
190
buttons ?: MessageDialogButtons
You can’t perform that action at this time.
0 commit comments