Interface IJsPoeBlazorUtils
Represents a utility interface for JavaScript operations in a Blazor application.
Inherited Members
Namespace: PoeShared.Blazor.Services
Assembly: PoeShared.Blazor.dll
Syntax
public interface IJsPoeBlazorUtils : IAsyncDisposable
Methods
| Name | Description |
|---|---|
| AddClass(ElementReference, params string[]) | Adds one or more CSS classes to the element specified by a selector or DOM reference. |
| AddClass(string, params string[]) | Adds one or more CSS classes to the element specified by a selector or DOM reference. |
| AddKeyboardHook<THandler>(ElementReference, DotNetObjectReference<THandler>, string) | |
| AddKeyboardHook<THandler>(ElementReference, THandler, string) | |
| AddRootComponent(string, string, object) | |
| ClickElementById(string) | Clicks on the element with the provided id. |
| FocusElementById(string) | Sets focus on the element with the provided id. |
| GetClipboardText() | Gets the text from the clipboard asynchronously. |
| HasClass(ElementReference, string) | Checks whether a DOM element has a specific CSS class. |
| HasClass(string, string) | Checks whether a DOM element has a specific CSS class. |
| LoadCss(string) | Loads CSS file dynamically |
| LoadScript(string) | Loads a JavaScript file dynamically and returns a promise that completes when the script loads. |
| RegisterFileDropTarget(ElementReference) | Registers a DOM element as a file drop target within the WebView2-based Blazor UI. |
| RemoveClass(ElementReference, params string[]) | Removes one or more CSS classes from the element specified by a selector or DOM reference. |
| RemoveClass(string, params string[]) | Removes one or more CSS classes from the element specified by a selector or DOM reference. |
| RemoveKeyboardHook(ElementReference) | |
| ScrollElementIntoView(ElementReference, string, string, string) | Scrolls the specified HTML element into view. |
| ScrollToBottom(string) | Scrolls to the bottom of an element matching specified selector using jQuery. |
| ScrollToBottom(string, TimeSpan) | Scrolls to the bottom of an element matching specified selector using jQuery. |
| ScrollToTop(string) | Scrolls to the top of an element matching specified selector using jQuery. |
| ScrollToTop(string, TimeSpan) | Scrolls to the top of an element matching specified selector using jQuery. |
| SelectAllTextInElement(ElementReference) | Selects all text within an HTML element identified by its ID. |
| SelectAllTextInElementById(string) | Selects all text within an HTML element identified by its ID. |
| SelectTextRangeInElement(ElementReference, int?, int?, JsSelectionRangeDirection) | Selects text range within an HTML element identified by its ID. |
| SetClass(ElementReference, params string[]) | Sets CSS class in the element specified by a selector or DOM reference. |
| SetClipboardText(string) | Sets the text in the clipboard. |
| ShowAlert(string) | Shows a text alert using SweetAlert. |
| ToggleClass(ElementReference, string) | Toggles the presence of a CSS class on the target element. |
| ToggleClass(string, string) | Toggles the presence of a CSS class on the target element. |