Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.39 KB

File metadata and controls

32 lines (23 loc) · 1.39 KB

BlobOptions

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

Properties

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

Examples

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., readyState becomes ReadyState)
  • Events use ActionEvent with +=/-= (e.g., addEventListener("click", fn) becomes OnClick += handler)
  • Async methods return Task<T> instead of Promise<T>
  • Objects should be disposed with using statements
  • Access via JS.Get<BlobOptions>(...) or constructor new 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

See full example on MDN