Namespace: SpawnDev.SpawnJS.JSObjects
Source: JSObjects/BlobOptions.cs
MDN Reference: BlobOptions on MDN
Options used when creating a new Blob https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob#options
| Property | Type | Access | Description |
|---|---|---|---|
BlobOptions |
class |
get | Options used when creating a new Blob https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob#options |
Endings |
string? |
get |
SpawnDev.SpawnJS Mapping Note: The JavaScript examples below show the standard Web API usage. In SpawnDev.SpawnJS, the same API is available with C# conventions:
- Properties and methods use PascalCase (e.g.,
readyStatebecomesReadyState)- Events use ActionEvent with
+=/-=(e.g.,addEventListener("click", fn)becomesOnClick += handler)- Async methods return
Task<T>instead ofPromise<T>- Objects should be disposed with
usingstatements- Access via
JS.Get<BlobOptions>(...)or constructornew BlobOptions(...)
const blobParts = ['<q id="a"><span id="b">hey!</span></q>']; // an array consisting of a single string
const blob = new Blob(blobParts, { type: "text/html" }); // the blob