Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular/components
/ focus
Method
focus
src/material/tabs/tab-label-wrapper.ts:31–33 ·
view source on GitHub ↗
Sets focus on the wrapper element
()
Source
from the content-addressed store, hash-verified
29
30
/** Sets focus on the wrapper element */
31
focus(): void {
32
this.elementRef.nativeElement.focus();
33
}
34
35
getOffsetLeft(): number {
36
return
this.elementRef.nativeElement.offsetLeft;
Callers
nothing calls this directly
Calls
1
focus
Method · 0.65
Tested by
no test coverage detected