Interface IClipboardJsInterop
- Namespace
- BlazOrbit.Components
- Assembly
- BlazOrbit.dll
JS interop contract for clipboard operations.
public interface IClipboardJsInterop
Methods
CopyRichAsync(string, string)
Writes both a text/plain and a text/html payload to the system clipboard.
Spreadsheet apps (Excel, Sheets, Numbers) prefer the HTML envelope for cell-type
inference; plain editors take the text variant. Falls back to CopyTextAsync(string)
on browsers without the async ClipboardItem API.
ValueTask CopyRichAsync(string text, string html)
Parameters
textstringPlain-text payload (typically TSV).
htmlstringHTML payload (typically a
<table>envelope).
Returns
- ValueTask
CopyTextAsync(string)
Copies text to the system clipboard.
ValueTask CopyTextAsync(string text)
Parameters
textstring
Returns
- ValueTask