-
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.
- Loading branch information
Showing
10 changed files
with
102 additions
and
9 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
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,8 @@ | ||
@page "/Samples/Issue356" | ||
<BSBasicInput InputType="InputType.Number" @bind-Value="@amount" step="0.01" /> | ||
|
||
|
||
@code | ||
{ | ||
string amount = "0.10"; | ||
} |
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,28 @@ | ||
@page "/samples/issue371" | ||
@using System.ComponentModel.DataAnnotations; | ||
<BSForm Model="Model" ValidateOnInit="true"> | ||
<DataAnnotationsValidator/> | ||
<BSFormGroup> | ||
<BSLabel For="EmailAddress">Email Address</BSLabel> | ||
<BSInput InputType="InputType.Email" id="EmailAddress" @bind-Value="@Model.Email" ValidateOnChange="true"/> | ||
<BSFormFeedback For="@(() => Model.Email)" ValidMessage="Sweet"></BSFormFeedback> | ||
</BSFormGroup> | ||
</BSForm> | ||
|
||
|
||
@code | ||
{ | ||
FormsModel Model = new FormsModel(); | ||
public class FormsModel | ||
{ | ||
|
||
public string Valid { get; set; } | ||
public DateTime Date { get; set; } | ||
[Required(AllowEmptyStrings = false, ErrorMessage = "Oh noes! that name is already taken")] | ||
public string InValid { get; set; } | ||
public string Blank { get; set; } | ||
[Required] | ||
[EmailAddress] | ||
public string Email { get; set; } = "[email protected]"; | ||
} | ||
} |
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,16 @@ | ||
@page "/samples/issue403" | ||
<BSButton Color="Color.Primary" @onclick="@(() => LiveDemo.Show())">Launch demo modal</BSButton> | ||
<BSModal @ref="LiveDemo"> | ||
<BSModalHeader OnClick="@(() => LiveDemo.Hide())">Modal title</BSModalHeader> | ||
<BSModalHeader HideCloseButton="true">Modal title2</BSModalHeader> | ||
<BSModalHeader HideCloseButton="true">Modal title3</BSModalHeader> | ||
<BSModalBody><p>Modal body text goes here.</p></BSModalBody> | ||
<BSModalFooter> | ||
<BSButton Color="Color.Secondary" @onclick="@(() => LiveDemo.Hide())">Close</BSButton> | ||
<BSButton Color="Color.Primary" @onclick="@(() => LiveDemo.Hide())">Save Changes</BSButton> | ||
</BSModalFooter> | ||
</BSModal> | ||
|
||
@code { | ||
BSModal LiveDemo { get; set; } | ||
} |
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