Merge pull request #2875 from sbwalker/dev

add ScrollToPageTop method to ThemeBase
This commit is contained in:
Shaun Walker 2023-06-08 08:39:33 -04:00 committed by GitHub
commit b6be519537
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,6 +170,12 @@ namespace Oqtane.Themes
}
}
public async Task ScrollToPageTop()
{
var interop = new Interop(JSRuntime);
await interop.ScrollTo(0, 0, "smooth");
}
[Obsolete("ContentUrl(int fileId) is deprecated. Use FileUrl(int fileId) instead.", false)]
public string ContentUrl(int fileid)
{