Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add Modal Parameters using ShowAsync<T>(string title, Dictionary<string, object> parameters = null) #970

Closed
YouriOkken opened this issue Dec 5, 2024 · 2 comments
Labels
area-modal question Further information is requested

Comments

@YouriOkken
Copy link

Hi, I am new to Blazor Bootstrap. I have a very simple question.

How do I pass Modal Parameters such as HeaderCssClass, IsVerticallyCentered, etc. using the ShowAsync(string title, Dictionary<string, object> parameters = null)?

I cant find any info about this on the docs

Kind regards

@gvreddy04
Copy link
Contributor

gvreddy04 commented Dec 6, 2024

@YouriOkken Thank you for trying BlazorBootstrap. We will add more examples.

Example:

<Modal @ref="modal" title="Modal title" IsVerticallyCentered="true" HeaderCssClass="custom-modal-header">
    <BodyTemplate>
        . . . 
    </BodyTemplate>
    <FooterTemplate>
        . . . 
    </FooterTemplate>
</Modal>

Link: https://demos.blazorbootstrap.com/modals#vertically-centered

@gvreddy04
Copy link
Contributor

@YouriOkken Please check the discussion #971.

@gvreddy04 gvreddy04 added area-modal question Further information is requested labels Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-modal question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants