Bartosz Dziewoński has uploaded a new change for review.
https://gerrit.wikimedia.org/r/183735
Change subject: TextInputWidget: Add support for 'autofocus' config option
......................................................................
TextInputWidget: Add support for 'autofocus' config option
I am not sure if this is a good idea. When we're running JavaScript,
just calling .focus() is always preferable. Should we implement this
in PHP? Or should the user just call ->setAttributes( … ) manually
when needed?
Change-Id: Idfc89279b9a4e017d59c9732c89c14a0c2849a90
---
M php/widgets/TextInputWidget.php
M src/widgets/TextInputWidget.js
M tests/JSPHP-suite.json
3 files changed, 1,165 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/35/183735/1
diff --git a/php/widgets/TextInputWidget.php b/php/widgets/TextInputWidget.php
index 51f02b4..fb41a97 100644
--- a/php/widgets/TextInputWidget.php
+++ b/php/widgets/TextInputWidget.php
@@ -27,12 +27,13 @@
* @param array $config Configuration options
* @param string $config['type'] HTML tag `type` attribute (default:
'text')
* @param string $config['placeholder'] Placeholder text
+ * @param boolean $config['autofocus'] Automatically focus (default:
false)
* @param boolean $config['readOnly'] Prevent changes (default: false)
* @param boolean $config['multiline'] Allow multiple lines of text
(default: false)
*/
public function __construct( array $config = array() ) {
// Config initialization
- $config = array_merge( array( 'readOnly' => false ), $config );
+ $config = array_merge( array( 'readOnly' => false, 'autofocus'
=> false ), $config );
// Parent constructor
parent::__construct( $config );
@@ -52,6 +53,9 @@
if ( isset( $config['placeholder'] ) ) {
$this->input->setAttributes( array( 'placeholder' =>
$config['placeholder'] ) );
}
+ if ( $config['autofocus'] ) {
+ $this->input->setAttributes( array( 'autofocus' =>
'autofocus' ) );
+ }
$this->setAttributes( array( 'role' => 'textbox' ) );
}
diff --git a/src/widgets/TextInputWidget.js b/src/widgets/TextInputWidget.js
index 8c8bc42..96de36e 100644
--- a/src/widgets/TextInputWidget.js
+++ b/src/widgets/TextInputWidget.js
@@ -11,6 +11,7 @@
* @param {Object} [config] Configuration options
* @cfg {string} [type='text'] HTML tag `type` attribute
* @cfg {string} [placeholder] Placeholder text
+ * @cfg {boolean} [autofocus=false] Automatically focus
* @cfg {boolean} [readOnly=false] Prevent changes
* @cfg {boolean} [multiline=false] Allow multiple lines of text
* @cfg {boolean} [autosize=false] Automatically resize to fit content
@@ -64,6 +65,9 @@
if ( config.placeholder ) {
this.$input.attr( 'placeholder', config.placeholder );
}
+ if ( config.autofocus ) {
+ this.$input.attr( 'autofocus', 'autofocus' );
+ }
this.$element.attr( 'role', 'textbox' );
};
diff --git a/tests/JSPHP-suite.json b/tests/JSPHP-suite.json
index c8d013a..458602c 100644
--- a/tests/JSPHP-suite.json
+++ b/tests/JSPHP-suite.json
@@ -9498,6 +9498,18 @@
{
"class": "TextInputWidget",
"config": {
+ "autofocus": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
"readOnly": true
}
},
@@ -9575,6 +9587,34 @@
"class": "TextInputWidget",
"config": {
"type": "text",
+ "autofocus": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "text",
+ "autofocus": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "password",
+ "autofocus": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "password",
+ "autofocus": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "text",
"readOnly": true
}
},
@@ -9687,6 +9727,34 @@
"class": "TextInputWidget",
"config": {
"placeholder": "Foo bar",
+ "autofocus": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "Foo bar",
+ "autofocus": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "<b>HTML?</b>",
+ "autofocus": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "<b>HTML?</b>",
+ "autofocus": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "Foo bar",
"readOnly": true
}
},
@@ -9792,6 +9860,118 @@
"class": "TextInputWidget",
"config": {
"placeholder": "<b>HTML?</b>",
+ "indicator": "down"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "readOnly": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "readOnly": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "readOnly": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "readOnly": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "multiline": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "multiline": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "multiline": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "multiline": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "value": "Foo bar"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "value": "<b>HTML?</b>"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "value": "Foo bar"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "value": "<b>HTML?</b>"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "icon": "picture"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "icon": "picture"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "indicator": "down"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
"indicator": "down"
}
},
@@ -9975,6 +10155,70 @@
"config": {
"type": "text",
"placeholder": "Foo bar",
+ "autofocus": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "text",
+ "placeholder": "Foo bar",
+ "autofocus": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "text",
+ "placeholder": "<b>HTML?</b>",
+ "autofocus": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "text",
+ "placeholder": "<b>HTML?</b>",
+ "autofocus": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "password",
+ "placeholder": "Foo bar",
+ "autofocus": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "password",
+ "placeholder": "Foo bar",
+ "autofocus": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "password",
+ "placeholder": "<b>HTML?</b>",
+ "autofocus": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "password",
+ "placeholder": "<b>HTML?</b>",
+ "autofocus": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "text",
+ "placeholder": "Foo bar",
"readOnly": true
}
},
@@ -10223,6 +10467,262 @@
"config": {
"type": "password",
"placeholder": "<b>HTML?</b>",
+ "indicator": "down"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "text",
+ "autofocus": true,
+ "readOnly": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "text",
+ "autofocus": true,
+ "readOnly": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "text",
+ "autofocus": false,
+ "readOnly": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "text",
+ "autofocus": false,
+ "readOnly": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "password",
+ "autofocus": true,
+ "readOnly": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "password",
+ "autofocus": true,
+ "readOnly": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "password",
+ "autofocus": false,
+ "readOnly": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "password",
+ "autofocus": false,
+ "readOnly": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "text",
+ "autofocus": true,
+ "multiline": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "text",
+ "autofocus": true,
+ "multiline": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "text",
+ "autofocus": false,
+ "multiline": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "text",
+ "autofocus": false,
+ "multiline": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "password",
+ "autofocus": true,
+ "multiline": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "password",
+ "autofocus": true,
+ "multiline": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "password",
+ "autofocus": false,
+ "multiline": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "password",
+ "autofocus": false,
+ "multiline": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "text",
+ "autofocus": true,
+ "value": "Foo bar"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "text",
+ "autofocus": true,
+ "value": "<b>HTML?</b>"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "text",
+ "autofocus": false,
+ "value": "Foo bar"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "text",
+ "autofocus": false,
+ "value": "<b>HTML?</b>"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "password",
+ "autofocus": true,
+ "value": "Foo bar"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "password",
+ "autofocus": true,
+ "value": "<b>HTML?</b>"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "password",
+ "autofocus": false,
+ "value": "Foo bar"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "password",
+ "autofocus": false,
+ "value": "<b>HTML?</b>"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "text",
+ "autofocus": true,
+ "icon": "picture"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "text",
+ "autofocus": false,
+ "icon": "picture"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "password",
+ "autofocus": true,
+ "icon": "picture"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "password",
+ "autofocus": false,
+ "icon": "picture"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "text",
+ "autofocus": true,
+ "indicator": "down"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "text",
+ "autofocus": false,
+ "indicator": "down"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "password",
+ "autofocus": true,
+ "indicator": "down"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "type": "password",
+ "autofocus": false,
"indicator": "down"
}
},
@@ -10630,6 +11130,262 @@
"class": "TextInputWidget",
"config": {
"placeholder": "Foo bar",
+ "autofocus": true,
+ "readOnly": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "Foo bar",
+ "autofocus": true,
+ "readOnly": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "Foo bar",
+ "autofocus": false,
+ "readOnly": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "Foo bar",
+ "autofocus": false,
+ "readOnly": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "<b>HTML?</b>",
+ "autofocus": true,
+ "readOnly": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "<b>HTML?</b>",
+ "autofocus": true,
+ "readOnly": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "<b>HTML?</b>",
+ "autofocus": false,
+ "readOnly": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "<b>HTML?</b>",
+ "autofocus": false,
+ "readOnly": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "Foo bar",
+ "autofocus": true,
+ "multiline": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "Foo bar",
+ "autofocus": true,
+ "multiline": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "Foo bar",
+ "autofocus": false,
+ "multiline": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "Foo bar",
+ "autofocus": false,
+ "multiline": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "<b>HTML?</b>",
+ "autofocus": true,
+ "multiline": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "<b>HTML?</b>",
+ "autofocus": true,
+ "multiline": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "<b>HTML?</b>",
+ "autofocus": false,
+ "multiline": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "<b>HTML?</b>",
+ "autofocus": false,
+ "multiline": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "Foo bar",
+ "autofocus": true,
+ "value": "Foo bar"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "Foo bar",
+ "autofocus": true,
+ "value": "<b>HTML?</b>"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "Foo bar",
+ "autofocus": false,
+ "value": "Foo bar"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "Foo bar",
+ "autofocus": false,
+ "value": "<b>HTML?</b>"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "<b>HTML?</b>",
+ "autofocus": true,
+ "value": "Foo bar"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "<b>HTML?</b>",
+ "autofocus": true,
+ "value": "<b>HTML?</b>"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "<b>HTML?</b>",
+ "autofocus": false,
+ "value": "Foo bar"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "<b>HTML?</b>",
+ "autofocus": false,
+ "value": "<b>HTML?</b>"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "Foo bar",
+ "autofocus": true,
+ "icon": "picture"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "Foo bar",
+ "autofocus": false,
+ "icon": "picture"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "<b>HTML?</b>",
+ "autofocus": true,
+ "icon": "picture"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "<b>HTML?</b>",
+ "autofocus": false,
+ "icon": "picture"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "Foo bar",
+ "autofocus": true,
+ "indicator": "down"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "Foo bar",
+ "autofocus": false,
+ "indicator": "down"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "<b>HTML?</b>",
+ "autofocus": true,
+ "indicator": "down"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "<b>HTML?</b>",
+ "autofocus": false,
+ "indicator": "down"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "placeholder": "Foo bar",
"readOnly": true,
"multiline": true
}
@@ -11029,6 +11785,406 @@
{
"class": "TextInputWidget",
"config": {
+ "autofocus": true,
+ "readOnly": true,
+ "multiline": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "readOnly": true,
+ "multiline": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "readOnly": false,
+ "multiline": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "readOnly": false,
+ "multiline": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "readOnly": true,
+ "multiline": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "readOnly": true,
+ "multiline": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "readOnly": false,
+ "multiline": true
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "readOnly": false,
+ "multiline": false
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "readOnly": true,
+ "value": "Foo bar"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "readOnly": true,
+ "value": "<b>HTML?</b>"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "readOnly": false,
+ "value": "Foo bar"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "readOnly": false,
+ "value": "<b>HTML?</b>"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "readOnly": true,
+ "value": "Foo bar"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "readOnly": true,
+ "value": "<b>HTML?</b>"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "readOnly": false,
+ "value": "Foo bar"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "readOnly": false,
+ "value": "<b>HTML?</b>"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "readOnly": true,
+ "icon": "picture"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "readOnly": false,
+ "icon": "picture"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "readOnly": true,
+ "icon": "picture"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "readOnly": false,
+ "icon": "picture"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "readOnly": true,
+ "indicator": "down"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "readOnly": false,
+ "indicator": "down"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "readOnly": true,
+ "indicator": "down"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "readOnly": false,
+ "indicator": "down"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "multiline": true,
+ "value": "Foo bar"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "multiline": true,
+ "value": "<b>HTML?</b>"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "multiline": false,
+ "value": "Foo bar"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "multiline": false,
+ "value": "<b>HTML?</b>"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "multiline": true,
+ "value": "Foo bar"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "multiline": true,
+ "value": "<b>HTML?</b>"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "multiline": false,
+ "value": "Foo bar"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "multiline": false,
+ "value": "<b>HTML?</b>"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "multiline": true,
+ "icon": "picture"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "multiline": false,
+ "icon": "picture"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "multiline": true,
+ "icon": "picture"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "multiline": false,
+ "icon": "picture"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "multiline": true,
+ "indicator": "down"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "multiline": false,
+ "indicator": "down"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "multiline": true,
+ "indicator": "down"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "multiline": false,
+ "indicator": "down"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "value": "Foo bar",
+ "icon": "picture"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "value": "<b>HTML?</b>",
+ "icon": "picture"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "value": "Foo bar",
+ "icon": "picture"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "value": "<b>HTML?</b>",
+ "icon": "picture"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "value": "Foo bar",
+ "indicator": "down"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "value": "<b>HTML?</b>",
+ "indicator": "down"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "value": "Foo bar",
+ "indicator": "down"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "value": "<b>HTML?</b>",
+ "indicator": "down"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": true,
+ "icon": "picture",
+ "indicator": "down"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
+ "autofocus": false,
+ "icon": "picture",
+ "indicator": "down"
+ }
+ },
+ {
+ "class": "TextInputWidget",
+ "config": {
"readOnly": true,
"multiline": true,
"value": "Foo bar"
--
To view, visit https://gerrit.wikimedia.org/r/183735
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idfc89279b9a4e017d59c9732c89c14a0c2849a90
Gerrit-PatchSet: 1
Gerrit-Project: oojs/ui
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits