SandBox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
##I guess I am | ##I guess I am | ||
###I am pretty sure I am right | ###I am pretty sure I am right | ||
// Creating a TextInputWidget. Specify a default value with the 'value' config. | |||
// A single-line TextInput (the default) | |||
var textInput = new OO.ui.TextInputWidget( { | |||
value: 'Text input' | |||
} ); | |||
$( 'body' ).append( textInput.$element ); |
Revision as of 13:37, 13 October 2017
Hey how are
you?
I am doing fine
- is this right?
- I guess so
- I guess I am
- I am pretty sure I am right
// Creating a TextInputWidget. Specify a default value with the 'value' config.
// A single-line TextInput (the default)
var textInput = new OO.ui.TextInputWidget( {
value: 'Text input'
} ); $( 'body' ).append( textInput.$element );