Skip to content

Commit

Permalink
Merge pull request #9 from stavroskasidis/release/1.5
Browse files Browse the repository at this point in the history
Release/1.5
  • Loading branch information
stavroskasidis authored Nov 5, 2021
2 parents d111349 + aef2974 commit c583c75
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion BlazorDialog/BlazorDialog.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<Copyright />
<PackageTags>blazor blazor-component blazor-dialog dialog modal blazor-modal blazordialog blazormodaldialog blazormodal razor razor-components razorcomponents</PackageTags>
<VersionSuffix>$(VersionSuffix)</VersionSuffix>
<Version>1.4.0</Version>
<Version>1.5.0</Version>
<Version Condition=" '$(VersionSuffix)' != '' ">$(Version)-$(VersionSuffix)</Version>
<Product>BlazorDialog</Product>
</PropertyGroup>
Expand Down
4 changes: 3 additions & 1 deletion BlazorDialog/Components/DialogBody.razor
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
@namespace BlazorDialog
<div class="blazor-dialog-body">
<div class="blazor-dialog-body @CssClass">
@ChildContent
</div>

@code{

[Parameter] public RenderFragment ChildContent { get; set; }

[Parameter] public string CssClass { get; set; }
}
3 changes: 2 additions & 1 deletion BlazorDialog/Components/DialogFooter.razor
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
@namespace BlazorDialog
<div class="blazor-dialog-footer">
<div class="blazor-dialog-footer @CssClass">
@ChildContent
</div>

@code{
[Parameter] public RenderFragment ChildContent { get; set; }
[Parameter] public string CssClass { get; set; }
}
3 changes: 2 additions & 1 deletion BlazorDialog/Components/DialogHeader.razor
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@namespace BlazorDialog
<div class="blazor-dialog-header">
<div class="blazor-dialog-header @CssClass" >
<div class="blazor-dialog-title">@ChildContent</div>
@if (ShowClose)
{
Expand All @@ -12,6 +12,7 @@
@code{
[Parameter] public RenderFragment ChildContent { get; set; }
[Parameter] public bool ShowClose { get; set; } = false;
[Parameter] public string CssClass { get; set; }
[CascadingParameter(Name = "ParentDialog")] Dialog Dialog { get; set; }

private async Task OnCloseClick()
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,12 @@ Make sure that there is a call to `app.UseStaticFiles();` in your server project
## Release Notes

<details open="open"><summary>1.4</summary>
<details open="open"><summary>1.5</summary>

>- Added css class parameter to all helper components (header/body/footer).
</details>
<details><summary>1.4</summary>

>- Added css class parameter to dialog component.
</details>
Expand Down

0 comments on commit c583c75

Please sign in to comment.