|
@@ -515,7 +515,7 @@ function renderInput() {
|
|
|
ui.inputLabeled.add( input() );
|
|
ui.inputLabeled.add( input() );
|
|
|
ui.inputReadOnly.add( input( {
|
|
ui.inputReadOnly.add( input( {
|
|
|
label: 'A read–only input',
|
|
label: 'A read–only input',
|
|
|
- isReadOnly: true,
|
|
|
|
|
|
|
+ isEnabled: false,
|
|
|
value: 'Read–only input value'
|
|
value: 'Read–only input value'
|
|
|
} ) );
|
|
} ) );
|
|
|
}
|
|
}
|
|
@@ -634,14 +634,14 @@ function toolbarNewLine() {
|
|
|
|
|
|
|
|
function input( {
|
|
function input( {
|
|
|
label = 'Labeled input',
|
|
label = 'Labeled input',
|
|
|
- isReadOnly = false,
|
|
|
|
|
|
|
+ isEnabled = true,
|
|
|
value = 'The value of the input'
|
|
value = 'The value of the input'
|
|
|
} = {} ) {
|
|
} = {} ) {
|
|
|
- const labeledInput = new LabeledFieldView( {}, createLabeledInputText );
|
|
|
|
|
|
|
+ const labeledField = new LabeledFieldView( {}, createLabeledInputText );
|
|
|
|
|
|
|
|
- labeledInput.fieldView.set( { isReadOnly, label, value } );
|
|
|
|
|
|
|
+ labeledField.set( { isEnabled, label, value } );
|
|
|
|
|
|
|
|
- return labeledInput;
|
|
|
|
|
|
|
+ return labeledField;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function setManualTestDirection( direction ) {
|
|
function setManualTestDirection( direction ) {
|