From: Prateek Saxena Date: Tue, 20 Oct 2015 06:54:56 +0000 (+0530) Subject: docs: mw.Upload.Dialog: Add another usage example in introduction X-Git-Tag: 1.31.0-rc.0~9337^2 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=586341ce7f6a8717b1e4bebcedbb36d865bc8d5a;p=lhc%2Fweb%2Fwiklou.git docs: mw.Upload.Dialog: Add another usage example in introduction Change-Id: I8ed1470b712643b23e86a167f06d2fd1116e8627 --- diff --git a/resources/src/mediawiki/mediawiki.Upload.Dialog.js b/resources/src/mediawiki/mediawiki.Upload.Dialog.js index 03e397180c..220a3fe3bb 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