Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150393 | Jan 5,2020 02:17 PM UTC | Jan 8,2020 07:30 AM UTC | Blazor | 1 |
![]() |
Tags: Checkbox |
@using Syncfusion.EJ2.Blazor.Buttons
<EjsCheckBox @bind-Checked="@Value"
Label="@Label"></EjsCheckBox>
<br />
<button @onclick="btnclick">Click</button>
@code {
public string Label { get; set; }
private bool _value;
[Parameter]
public EventCallback<string> ValueChanged { get; set; }
[Parameter]
public bool Value
{
get => _value;
set
{
if (_value != value)
{
_value = value;
ValueChanged.InvokeAsync(value.ToString());
}
}
}
public void btnclick()
{
Value = true;
}
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.