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

Method _getDisabledAttribute

src/material/chips/chip-action.ts:79–83  ·  view source on GitHub ↗

* Determine the value of the disabled attribute for this chip action.

()

Source from the content-addressed store, hash-verified

77 * Determine the value of the disabled attribute for this chip action.
78 */
79 protected _getDisabledAttribute(): string | null {
80 // When this chip action is disabled and focusing disabled chips is not permitted, return empty
81 // string to indicate that disabled attribute should be included.
82 return this.disabled && !this._allowFocusWhenDisabled ? '' : null;
83 }
84
85 constructor() {
86 inject(_CdkPrivateStyleLoader).load(_StructuralStylesLoader);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected