Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular/components
/ focus
Method
focus
src/cdk/listbox/listbox.ts:191–193 ·
view source on GitHub ↗
Focus this option.
()
Source
from the content-addressed store, hash-verified
189
190
/** Focus this option. */
191
focus() {
192
this.element.focus();
193
}
194
195
/** Get the label
for
this element which is required by the FocusableOption
interface
. */
196
getLabel() {
Callers
nothing calls this directly
Calls
1
focus
Method · 0.65
Tested by
no test coverage detected