Table of Contents

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

string

Methods

DisposeAsync()

public ValueTask DisposeAsync()

Returns

ValueTask

ScrollToSection(string)

public Task ScrollToSection(string id)

Parameters

id string

Returns

Task

ScrollToSection(Uri)

public Task ScrollToSection(Uri uri)

Parameters

uri Uri

Returns

Task

SectionChangeOccured(string)

[JSInvokable]
public void SectionChangeOccured(string id)

Parameters

id string

SetSectionAsActive(string)

public Task SetSectionAsActive(string id)

Parameters

id string

Returns

Task

StartSpying(string, string)

public Task StartSpying(string containerSelector, string sectionClassSelector)

Parameters

containerSelector string
sectionClassSelector string

Returns

Task

Events

ScrollSectionSectionCentered

public event EventHandler<ScrollSectionCenteredEventArgs> ScrollSectionSectionCentered

Event Type

EventHandler<ScrollSectionCenteredEventArgs>