mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 17:36:35 +00:00
29 lines
783 B
JavaScript
29 lines
783 B
JavaScript
|
/**
|
||
|
* VisualEditor user interface TextInputWidget class.
|
||
|
*
|
||
|
* @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt
|
||
|
* @license The MIT License (MIT); see LICENSE.txt
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* Creates an ve.ui.TextInputWidget object.
|
||
|
*
|
||
|
* @class
|
||
|
* @constructor
|
||
|
* @extends ve.ui.InputWidget
|
||
|
* @param {Function} $$ jQuery for the frame the widget is in
|
||
|
* @param {string} [name] Input name, used by HTML forms
|
||
|
* @param {string} [value] Input value
|
||
|
*/
|
||
|
ve.ui.TextInputWidget = function VeUiTextInputWidget( $$, name, value ) {
|
||
|
// Parent constructor
|
||
|
ve.ui.InputWidget.call( this, $$, 'text', name, value );
|
||
|
|
||
|
// Initialization
|
||
|
this.$.addClass( 've-ui-textInputWidget' ).attr( 'type', 'text' );
|
||
|
};
|
||
|
|
||
|
/* Inheritance */
|
||
|
|
||
|
ve.inheritClass( ve.ui.TextInputWidget, ve.ui.InputWidget );
|