mediawiki-extensions-Visual.../modules/ve/ui/widgets/ve.ui.TextInputWidget.js
James D. Forrester 82114467f1 Bump copyright notice year range to -2013 over -2012
199 files touched. Whee!

Change-Id: Id82ce4a32f833406db4a1cc585674f2bdb39ba0d
2013-02-19 15:37:34 -08:00

29 lines
783 B
JavaScript

/*!
* VisualEditor user interface TextInputWidget class.
*
* @copyright 2011-2013 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 );