Added material to the BeyondFacts Lab (#1180)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-09 20:00:01 +01:00
1 parent 22d94eb8fd
commit 9f2280bed7
58 files changed
+3932 -120

No files matched your search

@@ -20,5 +20,20 @@ public static class ElementReferenceExtensions
{
await jsRuntime.InvokeVoidAsync("scrollToStickyHeader", elementReference);
}
/// <summary>
/// Keeps the height of this sticky header, and the space it leaves free below, in the CSS variables
/// <c>--sticky-header-height</c> and <c>--sticky-space-below-header</c> of its scrolling container, so that
/// content further down can stick right below it.
/// </summary>
/// <remarks>
/// The variables follow every change of size, e.g., when a narrower window wraps the header into more lines.
/// Call it again for a new element only: a header which left the page stops being followed by itself.
/// </remarks>
/// <param name="jsRuntime">The JavaScript runtime of the page.</param>
public async ValueTask FollowStickyHeaderAsync(IJSRuntime jsRuntime)
{
await jsRuntime.InvokeVoidAsync("followStickyHeader", elementReference);
}
}
}