KristofferStrube.Blazor.DOM 0.1.0-alpha.1

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
This is a prerelease version of KristofferStrube.Blazor.DOM.
There is a newer version of this package available.
See the version list below for details.
dotnet add package KristofferStrube.Blazor.DOM --version 0.1.0-alpha.1
NuGet\Install-Package KristofferStrube.Blazor.DOM -Version 0.1.0-alpha.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="KristofferStrube.Blazor.DOM" Version="0.1.0-alpha.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add KristofferStrube.Blazor.DOM --version 0.1.0-alpha.1
#r "nuget: KristofferStrube.Blazor.DOM, 0.1.0-alpha.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install KristofferStrube.Blazor.DOM as a Cake Addin
#addin nuget:?package=KristofferStrube.Blazor.DOM&version=0.1.0-alpha.1&prerelease

// Install KristofferStrube.Blazor.DOM as a Cake Tool
#tool nuget:?package=KristofferStrube.Blazor.DOM&version=0.1.0-alpha.1&prerelease

License: MIT GitHub issues GitHub forks GitHub stars NuGet Downloads (official NuGet)

Introduction

A Blazor wrapper for the DOM browser API.

The API standardizes a lot of the most basic structures for working within the browser. This includes models for Events, Aborting mechanisms, and Nodes in the DOM. This project implements a wrapper around the API for Blazor so that we can easily and safely interact with it from Blazor.

The project will not focus on the part of the API related to Nodes as this often leads to misuse of Blazor by circumventing the Blazor rendering engine.

This project is still being developer so coverage is very limited.

Demo

The sample project can be demoed at https://kristofferstrube.github.io/Blazor.DOM/

On each page you can find the corresponding code for the example in the top right corner.

On the Status page you can see how much of the WebIDL specs this wrapper has covered.

Issues

Feel free to open issues on the repository if you find any errors with the package or have wishes for features.

This project is going to be used in these projects:

This project is going to be used in these projects that haven't been build yet because they are missing key features from this project:

  • Blazor.UIEvent - API specifying the common UI events like MouseEvent, DragEvent, etc. (uses Events)

This repository was build with inspiration and help from the following series of articles:

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on KristofferStrube.Blazor.DOM:

Package Downloads
KristofferStrube.Blazor.Streams The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Streams wrapper implementation for Blazor.

KristofferStrube.Blazor.MediaCaptureStreams The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Media Capture and Streams API wrapper implementation for Blazor.

KristofferStrube.Blazor.SVGAnimation The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

SVG Animation API wrapper implementation for Blazor.

KristofferStrube.Blazor.WebAudio The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Web Audio API wrapper implementation for Blazor.

KristofferStrube.Blazor.Window The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Window wrapper implementation for Blazor.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.2.1 127 4/9/2024
0.2.0 216 3/10/2024
0.1.1 2,144 6/21/2023
0.1.0 70 6/21/2023
0.1.0-alpha.8 72 6/20/2023
0.1.0-alpha.7 74 6/20/2023
0.1.0-alpha.6 64 6/20/2023
0.1.0-alpha.5 151 4/10/2023
0.1.0-alpha.4 93 4/10/2023
0.1.0-alpha.3 76 4/10/2023
0.1.0-alpha.2 131 3/1/2023
0.1.0-alpha.1 96 1/18/2023
0.1.0-alpha.0 89 1/16/2023