Skip to content

Commit

Permalink
6.2.0 Fix Styling issues when printing HTML
Browse files Browse the repository at this point in the history
Fixes #11
  • Loading branch information
vertonghenb committed Jan 30, 2023
1 parent f599095 commit cadd0cf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions samples/Append.Blazor.Printing.Wasm/Examples/Html.razor
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="exampleCheck1">
<label class="form-check-label" for="exampleCheck1">Check me out</label>
<label class="form-check-label text-primary" for="exampleCheck1">Check me out</label>
</div>
</form>

<button @onclick="@(_ => PrintingService.Print("printable-form", PrintType.Html))">
Print Form Without Bootstrap Styling
Print Form
</button>
</Code>
</Example>
4 changes: 2 additions & 2 deletions samples/Append.Blazor.Printing.Wasm/wwwroot/examples/Html.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="exampleCheck1">
<label class="form-check-label" for="exampleCheck1">Check me out</label>
<label class="form-check-label text-primary" for="exampleCheck1">Check me out</label>
</div>
</form>

<button @onclick="@(_ => PrintingService.Print("printable-form", PrintType.Html))">
Print Form Without Bootstrap Styling
Print Form
</button>
</Code>
</Example>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Version>6.1.0</Version>
<Version>6.2.0</Version>
<Authors>Benjamin Vertonghen</Authors>
<Company>Append</Company>
<Description>Print and Save files in Blazor using the native dialog box using JavaScript Interop.</Description>
Expand Down
1 change: 1 addition & 0 deletions source/Append.Blazor.Printing/PrintOptionsAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ internal record PrintOptionsAdapter
public bool ShowModal { get; init; }
public string ModalMessage { get; init; } = "Retrieving Document...";
public bool? Base64 { get; set; }
public string TargetStyles { get; set; } = "['*']";

public PrintOptionsAdapter(PrintOptions options)
{
Expand Down

0 comments on commit cadd0cf

Please sign in to comment.