Table of Contents

Interface IScrollManager

Namespace
MudBlazor
Assembly
MudBlazor.dll

Inject with the AddMudBlazorScrollServices extension.

public interface IScrollManager
Extension Methods

Methods

LockScrollAsync(string, string)

ValueTask LockScrollAsync(string selector = "body", string cssClass = "scroll-locked")

Parameters

selector string
cssClass string

Returns

ValueTask

ScrollIntoViewAsync(string, ScrollBehavior)

ValueTask ScrollIntoViewAsync(string selector, ScrollBehavior behavior)

Parameters

selector string
behavior ScrollBehavior

Returns

ValueTask

ScrollToAsync(string, int, int, ScrollBehavior)

ValueTask ScrollToAsync(string id, int left, int top, ScrollBehavior scrollBehavior)

Parameters

id string
left int
top int
scrollBehavior ScrollBehavior

Returns

ValueTask

ScrollToBottomAsync(string, ScrollBehavior)

ValueTask ScrollToBottomAsync(string elementId, ScrollBehavior scrollBehavior = ScrollBehavior.Auto)

Parameters

elementId string
scrollBehavior ScrollBehavior

Returns

ValueTask

ScrollToListItemAsync(string)

ValueTask ScrollToListItemAsync(string elementId)

Parameters

elementId string

Returns

ValueTask

ScrollToTopAsync(string, ScrollBehavior)

ValueTask ScrollToTopAsync(string id, ScrollBehavior scrollBehavior = ScrollBehavior.Auto)

Parameters

id string
scrollBehavior ScrollBehavior

Returns

ValueTask

ScrollToYearAsync(string)

ValueTask ScrollToYearAsync(string elementId)

Parameters

elementId string

Returns

ValueTask

UnlockScrollAsync(string, string)

ValueTask UnlockScrollAsync(string selector = "body", string cssClass = "scroll-locked")

Parameters

selector string
cssClass string

Returns

ValueTask