|
|
@@ -47,6 +47,14 @@ export default class LabeledInputView extends View {
|
|
|
this.set( 'value' );
|
|
|
|
|
|
/**
|
|
|
+ * Controls whether the component is in read-only mode.
|
|
|
+ *
|
|
|
+ * @observable
|
|
|
+ * @member {Boolean} #isReadOnly
|
|
|
+ */
|
|
|
+ this.set( 'isReadOnly', false );
|
|
|
+
|
|
|
+ /**
|
|
|
* The label view.
|
|
|
*
|
|
|
* @member {module:ui/label/labelview~LabelView} #labelView
|
|
|
@@ -99,6 +107,7 @@ export default class LabeledInputView extends View {
|
|
|
|
|
|
inputView.id = id;
|
|
|
inputView.bind( 'value' ).to( this );
|
|
|
+ inputView.bind( 'isReadOnly' ).to( this );
|
|
|
|
|
|
return inputView;
|
|
|
}
|