Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular/components
/ isFocused
Method
isFocused
src/material/menu/testing/menu-harness.ts:192–194 ·
view source on GitHub ↗
Whether the menu item is focused.
()
Source
from the content-addressed store, hash-verified
190
191
/** Whether the menu item is focused. */
192
async
isFocused(): Promise<boolean> {
193
return
(
await
this.host()).isFocused();
194
}
195
196
/** Clicks the menu item. */
197
async
click(): Promise<void> {
Callers
nothing calls this directly
Calls
1
isFocused
Method · 0.65
Tested by
no test coverage detected