MCPcopy Create free account
hub / github.com/angular/components / _getReadonlyAttribute

Method _getReadonlyAttribute

src/material/input/input.ts:609–619  ·  view source on GitHub ↗

Gets the value to set on the `readonly` attribute.

()

Source from the content-addressed store, hash-verified

607
608 /** Gets the value to set on the `readonly` attribute. */
609 protected _getReadonlyAttribute(): string | null {
610 if (this._isNativeSelect) {
611 return null;
612 }
613
614 if (this.readonly || (this.disabled && this.disabledInteractive)) {
615 return 'true';
616 }
617
618 return null;
619 }
620}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected