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

Method buttonId

src/material/slide-toggle/slide-toggle.ts:121–123  ·  view source on GitHub ↗

Returns the unique id for the visual hidden button.

()

Source from the content-addressed store, hash-verified

119
120 /** Returns the unique id for the visual hidden button. */
121 get buttonId(): string {
122 return `${this.id || this._uniqueId}-button`;
123 }
124
125 /** Reference to the MDC switch element. */
126 @ViewChild('switch') _switchElement!: ElementRef<HTMLElement>;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected