Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 3
0
 /// <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);
 }