jenkins-bot has submitted this change and it was merged.

Change subject: docs: mw.Upload.Dialog: Add another usage example in 
introduction
......................................................................


docs: mw.Upload.Dialog: Add another usage example in introduction

Change-Id: I8ed1470b712643b23e86a167f06d2fd1116e8627
---
M resources/src/mediawiki/mediawiki.Upload.Dialog.js
1 file changed, 10 insertions(+), 0 deletions(-)

Approvals:
  Bartosz Dziewoński: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/resources/src/mediawiki/mediawiki.Upload.Dialog.js 
b/resources/src/mediawiki/mediawiki.Upload.Dialog.js
index 03e3971..220a3fe 100644
--- a/resources/src/mediawiki/mediawiki.Upload.Dialog.js
+++ b/resources/src/mediawiki/mediawiki.Upload.Dialog.js
@@ -16,8 +16,18 @@
         *
         * The dialog's closing promise can be used to get details of the 
upload.
         *
+        * If you want to use a different OO.ui.BookletLayout, for example the
+        * mw.ForeignStructuredUpload.BookletLayout, like in the case of of the 
upload
+        * interface in VisualEditor, you can pass it in the {@link 
#cfg-bookletClass}:
+        *
+        *     var uploadDialog = new mw.Upload.Dialog( {
+        *         bookletClass: mw.ForeignStructuredUpload.BookletLayout
+        *     } );
+        *
+        *
         * @class mw.Upload.Dialog
         * @uses mw.Upload
+        * @uses mw.Upload.BookletLayout
         * @extends OO.ui.ProcessDialog
         * @cfg {Function} [bookletClass=mw.Upload.BookletLayout] Booklet class 
to be
         *     used for the steps

-- 
To view, visit https://gerrit.wikimedia.org/r/247517
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I8ed1470b712643b23e86a167f06d2fd1116e8627
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Prtksxna <[email protected]>
Gerrit-Reviewer: Bartosz Dziewoński <[email protected]>
Gerrit-Reviewer: Edokter <[email protected]>
Gerrit-Reviewer: Jack Phoenix <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to