Skip to content

Modal and Confirm Dialog HeaderCssClass/Dialog Doesnt Work #802

Closed Answered by gvreddy04
mightygriffon6 asked this question in Q&A

You must be logged in to vote

@mightygriffon6 Thank you for trying BlazorBootstrap. Here's an example below:

<Modal @ref="modal" Title="Modal title" HeaderCssClass="custom-modal-header">
    <BodyTemplate>
        Modal body text goes here.
    </BodyTemplate>
    <FooterTemplate>
        <Button Color="ButtonColor.Secondary" @onclick="OnHideModalClick">Close</Button>
        <Button Color="ButtonColor.Primary">Save changes</Button>
    </FooterTemplate>
</Modal>

<Button Color="ButtonColor.Primary" @onclick="OnShowModalClick">Show Modal</Button>

@code {
    private Modal modal = default!;

    private async Task OnShowModalClick()
    {
        await modal.ShowAsync();
    }

    private async Task OnHideModalClick(…

Replies: 1 comment

You must be logged in to vote
0 replies
Answer selected by mightygriffon6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment