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

Method shouldLabelFloat

src/material/select/select.ts:1431–1435  ·  view source on GitHub ↗

* Implemented as part of MatFormFieldControl. * @docs-private

()

Source from the content-addressed store, hash-verified

1429 * @docs-private
1430 */
1431 get shouldLabelFloat(): boolean {
1432 // Since the panel doesn't overlap the trigger, we
1433 // want the label to only float when there's a value.
1434 return this.panelOpen || !this.empty || (this.focused && !!this.placeholder);
1435 }
1436}
1437
1438/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected