Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    John Bomhold
    @jbomhold3
    V1 or V5?
    @Trickyyy
    John Bomhold
    @jbomhold3
    Also an example of what your trying to do would be good.
    John Bomhold
    @jbomhold3
    I added ModalColor to V5 and DialogClass parameters.
    In next release you will be able to do something like <BSModal ModalColor="BSColor.Primary" DialogClass="position-absolute top-0 start-0 m-0"> to make the modal primary color and position it top left. I thought about adding first class support for the position. However, it's not supported first class with bootstrap and can break other options.
    I released an unlisted version so you can use it now
    https://www.nuget.org/packages/BlazorStrap/5.0.105-Preview1a
    Tricky
    @Trickyyy
    thank you so much mate!
    I was really struggling with that
    Tricky
    @Trickyyy
    Is it limited to the enum colors?
    nvm got it thanks!
    JulianDev
    @JulianDev24
    Is there a way just to pass a boolean to the CheckBox and add a method when its getting checked or unchecked?
    John Bomhold
    @jbomhold3
    Don't bind and use ValueChanged this is something native in Blazor.
     <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
        }
    
    }
    JulianDev
    @JulianDev24
    Oh Thank u man :D
    JulianDev
    @JulianDev24

    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 🤷🏼‍♂️

    John Bomhold
    @jbomhold3
    BSToaster nor BSToast use BlazorStrapActionBase whatever NullReferenceException is happening before/after anything to do with toast shoot me a PM will help you find it
    need the full call stack and function that's calling _blazorStrap.Toaster.Add @JulianDev24
    John Bomhold
    @jbomhold3
    Sorry about any delayed responses atm I'm on a business trip. BSDataTable is getting some rework. DataSet and TotalRecords will be marked as Obsolete in the next preview release and removed in the full release. New way should be easier to understand and offer the same flexibility
    pahe
    @pahe
    hi, im trying to use the fluent validation extension, but it seem like its using a old version of fluentvaldation.. is there any new version of this?
    John Bomhold
    @jbomhold3
    @pahe V5 I assume?
    1 reply
    that library is super simple just needs to be updated for .net 6 if someone wants to do a pull request for it will get it pushed. I'm on a company trip atm
    Nicholas Budd
    @anaximander23
    hi, just dropped by because I've been looking at BlazorStrap for a project and I ran into something odd
    I keep seeing links to https://blazorstrap.io/extensions but if I try to go there the page seems to get stuck in a redirect loop endlessly adding p=/~and~q= to the query params again and again...
    Alberto Passalacqua
    @AlbertoPa
    I see that issue too ^
    John Bomhold
    @jbomhold3
    V5 the extensions but tree view (not yet ported) are core now. But will fix the link on the v1 docs
    I get home this weekend and will have time to address it
    Mattias
    @wouldBeNerd
    Hi, I can't get BSDropdown toggler BSToggle wo work as an outlined button with IsOutline="true" is this not available or am I doing it wrong?
    John Bomhold
    @jbomhold3
    IsButton needs to be true as well
      .AddClass($"btn-outline-{Color.NameToLower()}", IsOutlined && IsButton)
    John Bomhold
    @jbomhold3
    John Bomhold
    @jbomhold3
    If your using BSDataTable already please update to one of the new methods FetchData or OnChange see docs. We have two styles now to change updates events. Personal preference is FetchData but OnChange is likely easier to understand for new people. All reflection is now done in the BSDataTable it's self . Enjoy
    John Bomhold
    @jbomhold3
    I created a discord server for BlazorStrap gitter is great but can be slow to get messages though https://discord.gg/q7BkDycCHt will still actively be checking both
    John Bomhold
    @jbomhold3
    BlazorStrap 5.0.106-Beta1 is released see for release notes
    https://github.com/chanan/BlazorStrap/releases/tag/5.0.106-Beta1
    This is a beta release because it does contain code changes that need testing to make sure they didn't break anything.
    BBB
    @batthota

    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>