<BSInputCheckbox CheckedValue="true" UnCheckedValue="false" ValueChanged="(bool e) => Callback(e)" Value="value" />
@code {
bool value { get; set; }
private void Callback(bool e)
{
value = e;
// your stuff
}
}
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at SyxosWASM.Pages.Error.OccurredErrors.InfoCallBack(ErrorModel errorModel)
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at BlazorStrap.BlazorStrapActionBase.ClickEvent(MouseEventArgs e)
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
<div aria-live="polite" aria-atomic="true" class="position-relative bd-example-toasts" style="overflow-y: scroll ">
<BSToaster/>
</div>
@Body
_blazorStrap.Toaster.Add("Error", "Test Error", o =>
{
o.Color = BSColor.Danger;
o.CloseAfter = 3000;
o.Toast = Toast.TopRight;
});
I dont get why its not working 🤷🏼♂️
p=/~and~q=
to the query params again and again...
.AddClass($"btn-outline-{Color.NameToLower()}", IsOutlined && IsButton)
I am using a Blazorstrap modal in the BWA project with below code, when you click on the close button the dialog closes, then the screen gets frozen. any help on this issue is much appricated.
<BSModal DataId="modal2" HasCloseButton="true" ShowBackdrop="true">
<Header>Withdraw bid</Header>
<Content>Would you like to withdraw bid?</Content>
<Footer Context="modal">
<BSButton MarginStart="Margins.Auto" Color="BSColor.Secondary" @onclick="modal.HideAsync">Close</BSButton>
<BSButton Color="BSColor.Primary">Understood</BSButton>
</Footer>
</BSModal>
<BSButton Color="BSColor.Primary" Target="modal2">Launch demo modal</BSButton>