-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Feature: BSToaster see https://blazorstrap.io/V5/components/toast
Fixes: Inputs outside of edit contexts
- Loading branch information
Showing
75 changed files
with
684 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-512 Bytes
(96%)
docs/V5/_framework/Microsoft.Extensions.DependencyInjection.Abstractions.dll
Binary file not shown.
Binary file modified
BIN
-67 Bytes
(99%)
docs/V5/_framework/Microsoft.Extensions.DependencyInjection.Abstractions.dll.br
Binary file not shown.
Binary file modified
BIN
-40 Bytes
(99%)
docs/V5/_framework/Microsoft.Extensions.DependencyInjection.Abstractions.dll.gz
Binary file not shown.
Binary file modified
BIN
+512 Bytes
(100%)
docs/V5/_framework/System.ComponentModel.TypeConverter.dll
Binary file not shown.
Binary file modified
BIN
+105 Bytes
(100%)
docs/V5/_framework/System.ComponentModel.TypeConverter.dll.br
Binary file not shown.
Binary file modified
BIN
+115 Bytes
(100%)
docs/V5/_framework/System.ComponentModel.TypeConverter.dll.gz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<BSToast HeaderClass="bg-primary text-white" ButtonClass="btn-close-white"> | ||
<BSToast Color="BSColor.Primary"> | ||
<Header><strong>BlazorStarp</strong></Header> | ||
<Content>Hello, world!</Content> | ||
</BSToast> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<BSToast Color="BSColor.Primary"> | ||
<Content>Hello, world!</Content> | ||
</BSToast> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
@inject IBlazorStrap _blazorStrap | ||
<div aria-live="polite" aria-atomic="true" class="position-relative bd-example-toasts" style="overflow-y: scroll "> | ||
<BSToaster/> | ||
</div> | ||
|
||
<div class="input-group"> | ||
<span class="input-group-text">Toast Placement</span> | ||
<BSInput InputType="InputType.Select" @bind-Value="ToastPlacement"> | ||
@foreach (var item in Enum.GetNames(typeof(Toast)).ToList()) | ||
{ | ||
<option value="@item">@item</option> | ||
} | ||
</BSInput> | ||
<span class="input-group-text">Background Color</span> | ||
<BSInput InputType="InputType.Select" @bind-Value="Color"> | ||
@foreach (var item in Enum.GetNames(typeof(BSColor)).ToList()) | ||
{ | ||
<option value="@item">@item</option> | ||
} | ||
</BSInput> | ||
</div> | ||
<div class="input-group"> | ||
<span class="input-group-text">Close Time in milliseconds</span> | ||
<BSInput InputType="InputType.Text" @bind-Value="Time"/> | ||
<BSButton @onclick="Show" Color="BSColor.Primary">Show</BSButton> | ||
</div> | ||
@code | ||
{ | ||
private Toast ToastPlacement { get; set; } | ||
private BSColor Color { get; set; } | ||
private int Time { get; set; } = 0; | ||
private int i = 0; | ||
private void Show() | ||
{ | ||
_blazorStrap.Toaster.Add("Live Example " + @i, "Live Example Text", o => | ||
{ | ||
o.Color = Color; | ||
o.CloseAfter = Time; | ||
o.Toast = ToastPlacement; | ||
}); | ||
++i; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<BSLabel>Email address</BSLabel> | ||
<BSInput InputType="InputType.Email" placeholder="[email protected]" Value="@("")"/> | ||
</div> | ||
<div class="mb-3">> | ||
<div class="mb-3"> | ||
<BSLabel>Example Textarea</BSLabel> | ||
<BSInput InputType="InputType.TextArea" Value="@("")"/> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace BlazorStrap_Docs | ||
{ | ||
public static class ObjectExtensions | ||
{ | ||
public static T? Clone<T>(this T source) | ||
{ | ||
return System.Text.Json.JsonSerializer.Deserialize<T>(System.Text.Json.JsonSerializer.Serialize(source)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<BSToast HeaderClass="bg-primary text-white" ButtonClass="btn-close-white"> | ||
<BSToast Color="BSColor.Primary"> | ||
<Header><strong>BlazorStarp</strong></Header> | ||
<Content>Hello, world!</Content> | ||
</BSToast> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<BSToast Color="BSColor.Primary"> | ||
<Content>Hello, world!</Content> | ||
</BSToast> |
43 changes: 43 additions & 0 deletions
43
src/BlazorStrap-Docs/Samples/Components/Toast/Toast3.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
@inject IBlazorStrap _blazorStrap | ||
<div aria-live="polite" aria-atomic="true" class="position-relative bd-example-toasts" style="overflow-y: scroll "> | ||
<BSToaster/> | ||
</div> | ||
|
||
<div class="input-group"> | ||
<span class="input-group-text">Toast Placement</span> | ||
<BSInput InputType="InputType.Select" @bind-Value="ToastPlacement"> | ||
@foreach (var item in Enum.GetNames(typeof(Toast)).ToList()) | ||
{ | ||
<option value="@item">@item</option> | ||
} | ||
</BSInput> | ||
<span class="input-group-text">Background Color</span> | ||
<BSInput InputType="InputType.Select" @bind-Value="Color"> | ||
@foreach (var item in Enum.GetNames(typeof(BSColor)).ToList()) | ||
{ | ||
<option value="@item">@item</option> | ||
} | ||
</BSInput> | ||
</div> | ||
<div class="input-group"> | ||
<span class="input-group-text">Close Time in milliseconds</span> | ||
<BSInput InputType="InputType.Text" @bind-Value="Time"/> | ||
<BSButton @onclick="Show" Color="BSColor.Primary">Show</BSButton> | ||
</div> | ||
@code | ||
{ | ||
private Toast ToastPlacement { get; set; } | ||
private BSColor Color { get; set; } | ||
private int Time { get; set; } = 0; | ||
private int i = 0; | ||
private void Show() | ||
{ | ||
_blazorStrap.Toaster.Add("Live Example " + @i, "Live Example Text", o => | ||
{ | ||
o.Color = Color; | ||
o.CloseAfter = Time; | ||
o.Toast = ToastPlacement; | ||
}); | ||
++i; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<BSLabel>Email address</BSLabel> | ||
<BSInput InputType="InputType.Email" placeholder="[email protected]" Value="@("")"/> | ||
</div> | ||
<div class="mb-3">> | ||
<div class="mb-3"> | ||
<BSLabel>Example Textarea</BSLabel> | ||
<BSInput InputType="InputType.TextArea" Value="@("")"/> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/BlazorStrap-Docs/wwwroot/Samples/Components/Toast/Toast1.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<BSToast HeaderClass="bg-primary text-white" ButtonClass="btn-close-white"> | ||
<BSToast Color="BSColor.Primary"> | ||
<Header><strong>BlazorStarp</strong></Header> | ||
<Content>Hello, world!</Content> | ||
</BSToast> |
3 changes: 3 additions & 0 deletions
3
src/BlazorStrap-Docs/wwwroot/Samples/Components/Toast/Toast2.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<BSToast Color="BSColor.Primary"> | ||
<Content>Hello, world!</Content> | ||
</BSToast> |
Oops, something went wrong.