Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable input #2

Open
jackwootton opened this issue Jun 12, 2021 · 0 comments
Open

Disable input #2

jackwootton opened this issue Jun 12, 2021 · 0 comments

Comments

@jackwootton
Copy link
Owner

Allow Codemirror6 to be disabled through the form field interface.

  /** Whether the control is disabled. */
  @Input()
  get disabled(): boolean {
    return this._disabled;
  }
  set disabled(value: boolean) {
    this._disabled = coerceBooleanProperty(value);
    // TODO: disable codemirror view
    this.stateChanges.next();
  }
  private _disabled = false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant