Modal

A powerful and customizable modal implementation for Blazor applications.

MIT License

Stars
775
Committers
38

Bot releases are hidden (Show)

Modal - v3.1.0

Published by chrissainty over 4 years ago

Features

  • #85 - If you're running multiple modals on the same page sharing the same close method. You can now identify which modal was closed via the ModalResult.ModalType property.
  • #91 - If you don't need to pass anything back when closing the modal. You can now use ModalService.Close() without the need to specify a ModalResult object. When using this overload, a default OK ModalResult will be returned.
  • #90 - Added overloads for ModalService.Show method to allow dynamic type usage for modal content.
Modal - Blazored Modal v3.0.0

Published by chrissainty almost 5 years ago

Breaking Changes

In this release the old method of showing a modal and having to pass in a type as an argument has been removed in favour of using generics.

This means code which looks like this:

Modal.Show("Sign Up Form", typeof(SignUpForm), parameters, options);

Will need to be updated to this:

Modal.Show<SignUpForm>("Sign Up Form", parameters, options);

New Features

  • #54 - We've removed the 50rem width from the blazored-model CSS class. The modal will now size to whatever size your content is.
  • #71 - It's now possible to remove the entire modal header by setting HideHeader to true either using ModalOptions or setting it via component parameters.
  • #74 - A new internal event has been added to close the modal before executing the current OnClose event which runs user code.
  • #73 - The title for the modal can now be set dynamically by the content component using the following cascading parameter and using the SetTitle(string title) method.
[CascadingParameter] BlazoredModal BlazoredModal { get; set; }
Package Rankings
Top 8.17% on Proxy.golang.org
Badges
Extracted from project README
Nuget version Nuget downloads