Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Added TextInputView#isReadOnly state. #267

Merged
merged 5 commits into from
Jul 13, 2017
Merged

Added TextInputView#isReadOnly state. #267

merged 5 commits into from
Jul 13, 2017

Conversation

oskarwrobel
Copy link
Contributor

@oskarwrobel oskarwrobel commented Jul 6, 2017

Suggested merge commit message (convention)

Feature: Added TextInputView#isReadOnly and LabeledInputView#isReadOnly states. Closes ckeditor/ckeditor5#5386. Closes ckeditor/ckeditor5#5385.

* @observable
* @member {Boolean} #isReadOnly
*/
this.set( 'isReadOnly', false );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't LabeledInputView also implement it? I think the state may also affect the label/entire field in general (like changing the color of the label). readonly is common for all inputs so I guess LabeledInputView should interface it for all inputs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. I added only a state. I didn't add any CSS class reflecting this state.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add read-only state to the TextInputView Implement disabled states for various UI components
2 participants