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

Adds the ability to provide custom layouts for the modal such as Bootstrap #189

Merged
merged 3 commits into from
Jul 7, 2020

Conversation

dfkeenan
Copy link
Contributor

@dfkeenan dfkeenan commented Jul 4, 2020

Hi,

This is an option to use custom layout for modals. Resolves #167.

I have implemented a ModalOptions.UseCustomLayout property. If you set this to true it replaces the whole content of the BlazoredModalInstance with the Component you use.

Cheers,
dfkeenan

@chrissainty
Copy link
Member

Just had a look over this PR @dfkeenan and it's great work! Is there anything else you plan on doing or is it ready to go?

@chrissainty chrissainty added the Feature New feature that will be added to the project label Jul 6, 2020
@dfkeenan
Copy link
Contributor Author

dfkeenan commented Jul 7, 2020

I am reasonable happy with what I have done. I just updated the samples to include example code. I did not add instructions to the README though. I don't like touching other peoples README.

There are probably more advanced options allowing to set a custom layout and still pass in your own content. But I am just getting to know Blazor and thought this simple approach would be good enough for now.

If you are happy enough with it I/you can change it to ready for review. And we can merge it.

@chrissainty chrissainty marked this pull request as ready for review July 7, 2020 07:39
Copy link
Member

@chrissainty chrissainty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great thanks @dfkeenan for doing this.

@chrissainty chrissainty changed the title Add "UseCustomLayout" option. Adds the ability to provide custom layouts for the modal such as Bootstrap Jul 7, 2020
@chrissainty chrissainty merged commit 681e5e0 into Blazored:main Jul 7, 2020
@dfkeenan
Copy link
Contributor Author

dfkeenan commented Jul 7, 2020

Glad to help.

@univerise
Copy link

Hope to see that update to the nuget. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature that will be added to the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Bootstrap/custom modal markup
3 participants