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

Method _shouldLabelFloat

src/material/form-field/form-field.ts:637–642  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

635 _hasFloatingLabel = computed(() => !!this._labelChild());
636
637 _shouldLabelFloat(): boolean {
638 if (!this._hasFloatingLabel()) {
639 return false;
640 }
641 return this._shouldAlwaysFloat() || this._unwrapMaybeSignal(this._control.shouldLabelFloat);
642 }
643
644 /**
645 * Determines whether a class from the AbstractControlDirective

Callers 2

Calls 3

_shouldAlwaysFloatMethod · 0.95
_unwrapMaybeSignalMethod · 0.95
_hasFloatingLabelMethod · 0.80

Tested by

no test coverage detected