Interface IJsApiService
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
Provides JavaScript API services for various browser operations.
public interface IJsApiService
- Extension Methods
Methods
CopyToClipboardAsync(string)
Copies the specified text to the clipboard.
ValueTask CopyToClipboardAsync(string text)
Parameters
text
stringThe text to copy to the clipboard.
Returns
Open(string, string)
Opens the specified link in the specified target.
ValueTask Open(string link, string target)
Parameters
link
stringThe link to open.
target
stringThe target where the link should be opened (e.g., "_blank", "_self").
Returns
OpenInNewTabAsync(string)
Opens the specified URL in a new browser tab.
ValueTask OpenInNewTabAsync(string url)
Parameters
url
stringThe URL to open in a new tab.