Example #1
0
 /// <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);
 }
Example #2
0
 /// <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);
 }