/// <summary> /// scrolls the window to a particular place in the document. /// </summary> /// <param name="options"></param> /// <returns></returns> public async ValueTask Scroll(ScrollToOptions options) { await JsRuntime.InvokeInstanceMethod(JsObjectRef, "scroll", options).ConfigureAwait(false); }
/// <summary> /// scrolls the document in the window by the given amount. /// </summary> /// <param name="options"></param> /// <returns></returns> public async ValueTask ScrollBy(ScrollToOptions options) { await JsRuntime.InvokeInstanceMethod(JsObjectRef, "scrollBy", options); }
/// <summary> /// scrolls the document in the window by the given amount. /// </summary> /// <param name="options"></param> /// <returns></returns> public async Task ScrollBy(ScrollToOptions options) { await jsRuntime.InvokeInstanceMethodAsync(JsRuntimeObjectRef, "scrollBy", options); }