16 references to Anchor
Aspire.Dashboard (6)
Components\Controls\AspireMenu.razor.cs (6)
55/// Gets or sets a value indicating whether focus should return to <see cref="Anchor"/> after a menu item is clicked. 58/// Use this only for button-anchored menus where <see cref="Anchor"/> identifies the element that opened the menu. 59/// Do not enable it for cursor-positioned or context menus where <see cref="Anchor"/> is only used for positioning. 73.AddStyle("anchor-name", $"--anchor-{Anchor}") 162if (RestoreFocusOnItemClick && !string.IsNullOrEmpty(Anchor)) 164await JS.InvokeVoidAsync("focusElement", Anchor);
Aspire.Dashboard.Components.Tests (10)
Controls\AspireMenuTests.cs (9)
27builder.Add(p => p.Anchor, "menu-anchor"); 76builder.Add(p => p.Anchor, "menu-anchor"); 117builder.Add(p => p.Anchor, "menu-anchor"); 147builder.Add(p => p.Anchor, "menu-anchor"); 201builder.Add(p => p.Anchor, "menu-anchor"); 228builder.Add(p => p.Anchor, "menu-anchor"); 264menuBuilder.Add(p => p.Anchor, "menu-anchor"); 433builder.Add(p => p.Anchor, "menu-anchor"); 477builder.Add(p => p.Anchor, "menu-anchor");
Pages\TerminalsTests.cs (1)
387Assert.Equal(options.Instance.MenuButtonId, menu.Anchor);