Table of Contents

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 string

The text to copy to the clipboard.

Returns

ValueTask

A ValueTask representing the asynchronous operation.

Open(string, string)

Opens the specified link in the specified target.

ValueTask Open(string link, string target)

Parameters

link string

The link to open.

target string

The target where the link should be opened (e.g., "_blank", "_self").

Returns

ValueTask

A ValueTask representing the asynchronous operation.

OpenInNewTabAsync(string)

Opens the specified URL in a new browser tab.

ValueTask OpenInNewTabAsync(string url)

Parameters

url string

The URL to open in a new tab.

Returns

ValueTask

A ValueTask representing the asynchronous operation.