Hi Brice,
We have checked your reported query, we suspect that you want to get the property of the component in the ValueChange event. In the below code snippet, we have send the label property into the ValueChange event. Please find the below code snippet:
@using Syncfusion.Blazor.Buttons
<SfCheckBox Label="@label" ValueChange="@((Syncfusion.Blazor.Buttons.ChangeEventArgs e)=>valueChange(e, label))"></SfCheckBox>
@code{
public string label { get; set; } = "Checkebox";
public void valueChange(Syncfusion.Blazor.Buttons.ChangeEventArgs e, string label)
{
this.label = label + "Changed";
}
} |
We do not have any method in checkbox component, only for calling the method we need the component reference, so in which case you need the checkbox reference as an extra argument in ValueChange event and also share your exact use case
Could you please check the code snippet and let us know whether this is fulfilling your requirement, if not please share your exact use case scenario. So, that we can analyze based on that and provide you a better solution. The information provided would be great help for us to proceed further.
Regards,
Saranya D