Bit.Butil 9.2.0-pre-03

This is a prerelease version of Bit.Butil.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Bit.Butil --version 9.2.0-pre-03                
NuGet\Install-Package Bit.Butil -Version 9.2.0-pre-03                
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="Bit.Butil" Version="9.2.0-pre-03" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Bit.Butil --version 9.2.0-pre-03                
#r "nuget: Bit.Butil, 9.2.0-pre-03"                
#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 Bit.Butil as a Cake Addin
#addin nuget:?package=Bit.Butil&version=9.2.0-pre-03&prerelease

// Install Bit.Butil as a Cake Tool
#tool nuget:?package=Bit.Butil&version=9.2.0-pre-03&prerelease                

bit Butil

bit Blazor Utilities for JavaScript


To start using Butil you first need to install the NuGet package:

dotnet add package Bit.Butil

then add its script tag to your app:

<script src="_content/Bit.Butil/bit-butil.js"></script>

you also need to add its services like this:

using Bit.Butil;

...

builder.Services.AddBitButilServices();

...

Now you can inject its classes to use the utilities.

Window

To use a representation of the DOM's window object in C# you can inject the Bit.Butil.Window class:

@inject Bit.Butil.Window window

...

@code {

    ...

    await window.AddEventListener(ButilEvents.KeyDown, args => { ... });

    ...
}

Document

To use a representation of the DOM's document object in C# you can inject the Bit.Butil.Document class:

@inject Bit.Butil.Document document

...

@code {

    ...

    await document.AddEventListener(ButilEvents.Click, args => { ... });

    ...
}

Keyboard

In Butil there is a special class to work with keyboard and short keys. you can use this class by inejcting the Bit.Butil.Keyboard class:

@inject Bit.Butil.Keyboard keyboard

...

@code {
    ...

    await keyboard.Add("F10", args => { ... }, , ButilModifiers.Alt | ButilModifiers.Ctrl);

    ...
}

Console

To use the browser console features you can try injecting the Bit.Butil.Console class like this:

@inject Bit.Butil.Console console

...

@code {
    ...

    console.Log("This is a test log:", someValue);
    console.Assert(condition, "The condition failed!", testedValue);
    console.Error("This is a test error:", value);

    ...
}
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Bit.Butil:

Repository Stars
bitfoundation/bitplatform
Build all of your apps using what you already know and love ❤️
Version Downloads Last updated
9.2.1-pre-02 132 1/4/2025
9.2.1-pre-01 153 1/3/2025
9.2.0 120 1/1/2025
9.2.0-pre-04 45 1/1/2025
9.2.0-pre-03 63 12/31/2024
9.2.0-pre-02 139 12/31/2024
9.2.0-pre-01 80 12/30/2024
9.1.2 580 12/24/2024
9.1.2-pre-01 91 12/23/2024
9.1.1 498 12/15/2024
9.1.1-pre-01 82 12/15/2024
9.1.0 130 12/14/2024
9.1.0-pre-13 98 12/13/2024
9.1.0-pre-12 86 12/13/2024
9.1.0-pre-11 74 12/13/2024
9.1.0-pre-10 187 12/10/2024
9.1.0-pre-09 166 12/6/2024
9.1.0-pre-08 264 12/2/2024
9.1.0-pre-07 82 12/2/2024
9.1.0-pre-06 71 12/2/2024
9.1.0-pre-05 162 12/1/2024
9.1.0-pre-04 108 11/29/2024
9.1.0-pre-03 347 11/25/2024
9.1.0-pre-02 161 11/24/2024
9.1.0-pre-01 88 11/23/2024
9.0.1 358 11/20/2024
9.0.0 232 11/18/2024
9.0.0-pre-02 84 11/18/2024
9.0.0-pre-01 227 11/15/2024
8.12.0 463 11/12/2024
8.12.0-pre-15 150 11/11/2024
8.12.0-pre-14 114 11/11/2024
8.12.0-pre-13 135 11/11/2024
8.12.0-pre-12 117 11/10/2024
8.12.0-pre-11 113 11/9/2024
8.12.0-pre-10 291 11/5/2024
8.12.0-pre-09 91 11/5/2024
8.12.0-pre-08 274 11/1/2024
8.12.0-pre-07 281 10/27/2024
8.12.0-pre-06 200 10/24/2024
8.12.0-pre-05 141 10/21/2024
8.12.0-pre-04 130 10/20/2024
8.12.0-pre-03 638 10/6/2024
8.12.0-pre-02 163 10/2/2024
8.12.0-pre-01 114 9/29/2024
8.11.1-pre-04 148 9/27/2024
8.11.1-pre-03 114 9/26/2024
8.11.1-pre-02 278 9/22/2024
8.11.1-pre-01 172 9/19/2024
8.11.0 462 9/16/2024
8.11.0-pre-09 126 9/15/2024
8.11.0-pre-08 165 9/13/2024
8.11.0-pre-07 160 9/10/2024
8.11.0-pre-06 241 9/4/2024
8.11.0-pre-05 142 9/3/2024
8.11.0-pre-04 341 8/22/2024
8.11.0-pre-03 169 8/21/2024
8.11.0-pre-02 187 8/19/2024
8.11.0-pre-01 225 8/16/2024
8.10.0 559 8/8/2024
8.10.0-pre-05 155 8/4/2024
8.10.0-pre-04 76 8/3/2024
8.10.0-pre-03 1,003 6/26/2024
8.10.0-pre-02 122 6/26/2024
8.10.0-pre-01 110 6/25/2024
8.9.0 1,244 6/9/2024
8.9.0-pre-04 101 6/9/2024
8.9.0-pre-03 194 6/6/2024
8.9.0-pre-02 263 5/31/2024
8.9.0-pre-01 128 5/28/2024
8.8.2-pre-05 156 5/27/2024
8.8.2-pre-04 107 5/26/2024
8.8.2-pre-03 137 5/23/2024
8.8.2-pre-02 334 5/9/2024
8.8.2-pre-01 210 5/1/2024
8.8.1 3,131 4/13/2024
8.8.1-pre-02 94 4/12/2024
8.8.1-pre-01 137 4/12/2024
8.8.0 607 4/1/2024
8.8.0-pre-04 160 3/29/2024
8.8.0-pre-03 264 3/16/2024
8.8.0-pre-02 196 3/10/2024
8.8.0-pre-01 290 2/27/2024
8.7.6 1,793 2/23/2024
8.7.6-pre-08 219 2/23/2024
8.7.6-pre-07 126 2/21/2024
8.7.6-pre-06 110 2/21/2024
8.7.6-pre-05 124 2/18/2024
8.7.6-pre-04 136 2/14/2024
8.7.6-pre-03 105 2/14/2024
8.7.6-pre-02 95 2/14/2024
8.7.6-pre-01 108 2/12/2024
8.7.5 211 2/9/2024
8.7.5-pre-04 140 2/3/2024
8.7.5-pre-03 144 1/29/2024
8.7.5-pre-02 134 1/25/2024
8.7.5-pre-01 106 1/24/2024
8.7.4 398 1/23/2024
8.7.3-pre-02 140 1/22/2024
8.7.3-pre-01 243 1/20/2024
8.7.2 225 1/17/2024
8.7.2-pre-02 142 1/17/2024
8.7.2-pre-01 237 1/11/2024
8.7.1 315 1/9/2024
8.7.0 242 1/8/2024
8.7.0-pre-05 156 1/7/2024
8.7.0-pre-04 210 1/5/2024
8.7.0-pre-03 125 1/4/2024
8.7.0-pre-02 164 12/31/2023
8.7.0-pre-01 114 12/31/2023
8.6.0 200 12/31/2023
8.6.0-pre-03 171 12/25/2023
8.6.0-pre-02 132 12/25/2023
8.6.0-pre-01 217 12/21/2023
8.5.0 152 12/20/2023
8.5.0-pre-02 126 12/16/2023
8.5.0-pre-01 117 12/15/2023
8.4.0 129 12/14/2023
8.4.0-pre-01 123 12/13/2023
8.3.0 134 12/12/2023
8.3.0-pre-03 124 12/11/2023
8.3.0-pre-02 125 12/11/2023
8.3.0-pre-01 111 12/11/2023
8.2.0 279 12/2/2023
8.2.0-pre-05 100 12/2/2023
8.2.0-pre-04 114 12/1/2023
8.2.0-pre-03 122 11/30/2023
8.2.0-pre-02 110 11/29/2023
8.2.0-pre-01 105 11/25/2023
8.1.0 158 11/22/2023
8.1.0-pre-03 84 11/22/2023
8.1.0-pre-02 116 11/20/2023
8.1.0-pre-01 109 11/17/2023
8.0.1 134 11/14/2023
8.0.0-pre-01 116 11/14/2023
7.3.0 87 11/14/2023
7.3.0-pre-01 73 11/14/2023
7.2.0 95 11/14/2023
7.2.0-pre-02 76 11/14/2023
7.2.0-pre-01 78 11/12/2023
7.1.0 93 11/8/2023
7.1.0-pre-05 70 11/7/2023
7.1.0-pre-04 78 11/4/2023
7.1.0-pre-03 77 10/27/2023
7.1.0-pre-02 78 10/23/2023
7.1.0-pre-01 74 10/17/2023
7.0.0 133 10/15/2023
7.0.0-pre-02 81 10/15/2023
7.0.0-pre-01 76 10/13/2023
6.1.0 117 10/13/2023
6.1.0-pre-03 74 10/13/2023
6.1.0-pre-02 79 10/12/2023
6.1.0-pre-01 70 10/11/2023
6.0.0 97 10/9/2023
6.0.0-pre-05 89 10/8/2023
6.0.0-pre-04 78 10/6/2023
6.0.0-pre-03 77 10/2/2023
6.0.0-pre-02 85 9/29/2023
6.0.0-pre-01 79 9/27/2023
5.6.1 143 9/20/2023
5.6.1-pre-01 110 9/20/2023
5.6.0 148 9/20/2023
5.6.0-pre-03 103 9/20/2023
5.6.0-pre-02 103 9/18/2023
5.6.0-pre-01 131 9/14/2023
5.5.0 148 9/2/2023
5.5.0-pre-08 106 9/2/2023
5.5.0-pre-07 113 8/30/2023
5.5.0-pre-06 108 8/29/2023
5.5.0-pre-05 125 8/28/2023
5.5.0-pre-04 124 8/28/2023
5.5.0-pre-03 123 8/27/2023
5.5.0-pre-02 104 8/26/2023
5.5.0-pre-01 113 8/24/2023
5.4.0 165 8/20/2023
5.4.0-pre-05 129 8/20/2023
5.4.0-pre-04 128 8/19/2023
5.4.0-pre-03 110 8/19/2023
5.4.0-pre-02 126 8/19/2023
5.4.0-pre-01 126 8/15/2023
5.3.0 157 8/10/2023
5.3.0-pre-07 133 8/9/2023
5.3.0-pre-06 113 8/8/2023
5.3.0-pre-05 132 8/7/2023
5.3.0-pre-04 138 8/6/2023
5.3.0-pre-03 145 8/1/2023
5.3.0-pre-02 141 8/1/2023
5.3.0-pre-01 137 7/31/2023
5.2.0 147 7/28/2023
5.2.0-pre-05 128 7/27/2023
5.2.0-pre-03 147 7/24/2023
5.2.0-pre-02 141 7/24/2023
5.2.0-pre-01 135 7/10/2023
5.1.0 191 7/5/2023
5.1.0-pre-16 138 7/4/2023
5.1.0-pre-15 143 7/3/2023
5.1.0-pre-14 136 7/3/2023
5.1.0-pre-13 134 7/3/2023
5.1.0-pre-12 127 7/2/2023
5.1.0-pre-11 146 7/2/2023
5.1.0-pre-10 137 7/2/2023
5.1.0-pre-09 135 6/29/2023
5.1.0-pre-08 114 6/27/2023
5.1.0-pre-07 124 6/25/2023
5.1.0-pre-06 129 6/24/2023
5.1.0-pre-04 117 6/24/2023
5.1.0-pre-03 119 6/22/2023
5.1.0-pre-02 130 6/17/2023
5.1.0-pre-01 127 6/16/2023
5.0.0 184 5/29/2023
5.0.0-pre-02 118 5/29/2023
5.0.0-pre-01 127 5/25/2023
4.9.11-pre-02 127 5/25/2023
4.9.11-pre-01 128 5/25/2023
4.9.10 211 5/25/2023
4.9.10-pre-07 119 5/25/2023
4.9.10-pre-06 122 5/16/2023
4.9.10-pre-05 117 5/15/2023
4.9.10-pre-04 113 5/6/2023
4.9.10-pre-03 118 5/2/2023
4.9.10-pre-01 137 4/26/2023
4.9.9 239 4/10/2023
4.9.9-pre-03 133 4/9/2023
4.9.9-pre-02 146 3/29/2023
4.9.9-pre-01 129 3/29/2023
4.9.8-pre-02 150 3/21/2023
4.9.8-pre-01 134 3/20/2023
4.9.7-pre-01 141 3/6/2023
4.9.6 309 2/25/2023
4.9.6-pre-05 132 2/23/2023
4.9.6-pre-04 135 2/23/2023
4.9.6-pre-03 136 2/20/2023
4.9.6-pre-02 142 2/15/2023
4.9.5 295 2/8/2023
4.9.5-pre-03 146 2/8/2023
4.9.5-pre-02 132 2/8/2023
4.9.5-pre-01 126 2/7/2023
4.9.4 326 1/31/2023
4.9.4-pre-02 154 1/31/2023
4.9.4-pre-01 152 1/27/2023
4.9.3-pre-04 157 1/22/2023
4.9.3-pre-03 135 1/20/2023
4.9.3-pre-02 147 1/19/2023
4.9.2-pre-01 159 1/9/2023
4.9.1-pre-02 154 12/26/2022
4.9.1-pre-01 137 12/18/2022
4.9.0-pre-02 156 11/27/2022
4.9.0-pre-01 128 11/22/2022
4.8.0 413 11/15/2022
4.8.0-pre-02 154 11/14/2022
4.8.0-pre-01 158 11/11/2022
4.7.0 124 10/31/2022
4.7.0-pre-04 119 10/31/2022
4.7.0-pre-03 104 10/31/2022
4.7.0-pre-02 113 10/29/2022
4.7.0-pre-01 107 10/27/2022
4.6.0-pre-01 105 10/27/2022
4.5.0-pre-01 137 10/20/2022
4.4.1-pre-01 149 10/20/2022
4.4.0-pre-01 107 10/15/2022
4.3.2-pre-04 99 10/7/2022
4.3.2-pre-03 98 10/6/2022
4.3.2-pre-01 112 9/29/2022
4.3.1 129 9/21/2022
4.3.0 126 9/21/2022
4.2.0-pre-07 131 9/19/2022
4.2.0-pre-05 152 9/18/2022
4.2.0-pre-04 162 9/18/2022
4.2.0-pre-02 162 9/14/2022
4.2.0-pre-01 109 9/12/2022
4.1.0 144 9/8/2022
4.1.0-pre-01 125 9/8/2022
4.0.0 125 9/1/2022
3.1.0-pre-07 104 9/1/2022
3.1.0-pre-06 100 8/30/2022
3.1.0-pre-05 103 8/29/2022
3.1.0-pre-04 103 8/28/2022
3.1.0-pre-03 106 8/27/2022
3.1.0-pre-02 112 8/25/2022
3.1.0-pre-01 108 8/23/2022
3.0.0 148 8/15/2022
3.0.0-pre-09 120 8/15/2022
3.0.0-pre-08 112 8/15/2022
3.0.0-pre-07 113 8/15/2022
3.0.0-pre-06 150 8/14/2022
3.0.0-pre-05 162 8/14/2022
3.0.0-pre-04 163 8/9/2022
3.0.0-pre-03 158 8/8/2022
3.0.0-pre-02 153 8/7/2022
3.0.0-pre-01 183 7/29/2022
2.0.0 520 7/25/2022
2.0.0-pre-14 149 7/24/2022
2.0.0-pre-12 169 7/21/2022
2.0.0-pre-11 169 7/21/2022
2.0.0-pre-10 162 7/20/2022
2.0.0-pre-09 172 7/20/2022
2.0.0-pre-08 175 7/19/2022
2.0.0-pre-07 169 7/19/2022
2.0.0-pre-06 177 7/18/2022
2.0.0-pre-05 186 7/17/2022
2.0.0-pre-04 153 7/14/2022
2.0.0-pre-03 175 7/13/2022
2.0.0-pre-02 163 7/12/2022
2.0.0-pre-01 158 7/8/2022
2.0.0-pre-00 174 7/4/2022
1.0.2 553 7/4/2022
1.0.0 547 7/4/2022