User:DAlangi (WMF)/common.js

/** * Testing out some functionalities */ mw.loader.using( 'oojs-ui', 'oojs-ui-core', 'oojs-ui.styles.icons-editing-core' ).done( function {	$( function  { // Text input widget with indicator var input = new OO.ui.TextInputWidget( {			placeholder: 'This field is required',			indicator: 'required',			required: true		} ); $( '#mw-content-text' ).append( input.$element ); var multiline_input = new OO.ui.MultilineTextInputWidget( {			rows: 5			} ); $( '#mw-content-text' ).append( multiline_input.$element ); } ); } );