You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

IndeterminateCheckboxBlazor

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

IndeterminateCheckboxBlazor

Indeterminate (tri-state) Checkbox for Blazor

1.0.0
Source
nugetNuGet
Version published
Maintainers
1
Created
Source

Indeterminate (tri-state) Checkbox for Blazor

Add nuget:

dotnet add package IndeterminateCheckboxBlazor

You don't need to register any service or do anything else in Program or Startup class. Value used for checkbox must be of type bool?.

@using IndeterminateCheckboxBlazor

<label> <IndeterminateCheckbox @bind-Value="_value" /> Checkbox </label>

@code {
    private bool? _value = false;
}

It's possible to set style and class with Style and Class properties:

<IndeterminateCheckbox @bind-Value="_value" Style="" Class="" />

To change behavior set ChangeMode property:

<IndeterminateCheckbox @bind-Value="_value" ChangeModel="ChangeMode.CheckedIndeterminateUnchecked" />

This property affects how checkbox value is changed when user clicks on it:

public enum ChangeMode
{
    CheckedUncheckedIndeterminate,
    CheckedIndeterminateUnchecked,
    CheckedUnchecked
}

See IndeterminateCheckboxBlazor.TestApp project for more usage examples.

Keywords

blazor

FAQs

Package last updated on 26 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts