User:Inductiveload/Sandbox.js

( function ( $, mw ) {

function installDialog { var ParamDialog = function ( config ) { ParamDialog.super.call( this, config ); };		OO.inheritClass( ParamDialog, OO.ui.ProcessDialog );

ParamDialog.static.name = 'myDialog'; ParamDialog.static.title = 'Title'; ParamDialog.static.escapable = true; ParamDialog.static.actions = [ {				flags: 'primary', label: 'OK' },			{				flags: 'safe', label: 'Cancel' }		];

// Create and append a window manager. var windowManager = new OO.ui.WindowManager; $( 'body' ).append( windowManager.$element );

// Create a new process dialog window. var paramDlg = new ParamDialog;

// Add the window to window manager using the addWindows method. windowManager.addWindows( [ paramDlg ] );

// Open the window! windowManager.openWindow( paramDlg ); }

mw.loader.using(		[ 'mediawiki.util', 'oojs-ui-core', 'oojs-ui-widgets' ],		installDialog	);

// eslint-disable-next-line no-undef }( jQuery, mediaWiki ) );