Class ScrollSpy
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
public class ScrollSpy : IScrollSpy, IAsyncDisposable
- Inheritance
-
ScrollSpy
- Implements
- Inherited Members
- Extension Methods
Constructors
ScrollSpy(IJSRuntime)
public ScrollSpy(IJSRuntime js)
Parameters
js
IJSRuntime
Properties
CenteredSection
Get the current position of the centered section
public string CenteredSection { get; }
Property Value
Methods
DisposeAsync()
public ValueTask DisposeAsync()
Returns
ScrollToSection(string)
public Task ScrollToSection(string id)
Parameters
id
string
Returns
ScrollToSection(Uri)
public Task ScrollToSection(Uri uri)
Parameters
uri
Uri
Returns
SectionChangeOccured(string)
[JSInvokable]
public void SectionChangeOccured(string id)
Parameters
id
string
SetSectionAsActive(string)
public Task SetSectionAsActive(string id)
Parameters
id
string
Returns
StartSpying(string, string)
public Task StartSpying(string containerSelector, string sectionClassSelector)
Parameters
Returns
Events
ScrollSectionSectionCentered
public event EventHandler<ScrollSectionCenteredEventArgs> ScrollSectionSectionCentered