-
Notifications
You must be signed in to change notification settings - Fork 13
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
1 parent
41422c6
commit 3dd8620
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
SiemensIXBlazor/Components/ToggleButton/IconToggleButton.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,17 @@ | ||
@namespace SiemensIXBlazor.Components | ||
@using SiemensIXBlazor.Enums.Button; | ||
@using SiemensIXBlazor.Helpers; | ||
@inherits IXBaseComponent | ||
<ix-icon-toggle-button @attributes="UserAttributes" | ||
class="@Class" | ||
style="@Style" | ||
id="@Id" | ||
disabled="@Disabled" | ||
ghost="@Ghost" | ||
icon="@Icon" | ||
loading="@Loading" | ||
outline="@Outline" | ||
pressed="@Pressed" | ||
size="@Size" | ||
variant="@(EnumParser<ButtonVariant>.ParseEnumToString(Variant))"> | ||
</ix-icon-toggle-button> |
31 changes: 31 additions & 0 deletions
31
SiemensIXBlazor/Components/ToggleButton/IconToggleButton.razor.cs
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,31 @@ | ||
using Microsoft.AspNetCore.Components; | ||
using SiemensIXBlazor.Enums.Button; | ||
|
||
namespace SiemensIXBlazor.Components | ||
{ | ||
public partial class IconToggleButton | ||
{ | ||
[Parameter, EditorRequired] | ||
public string Id { get; set; } | ||
[Parameter] | ||
public RenderFragment? ChildContent { get; set; } | ||
[Parameter] | ||
public bool Disabled { get; set; } = false; | ||
[Parameter] | ||
public bool Ghost { get; set; } = false; | ||
[Parameter] | ||
public string? Icon { get; set; } | ||
[Parameter] | ||
public bool Loading { get; set; } = false; | ||
[Parameter] | ||
public bool Outline { get; set; } = false; | ||
[Parameter] | ||
public bool Pressed { get; set; } = false; | ||
[Parameter] | ||
public string Size { get; set; } = "24"; | ||
[Parameter] | ||
public ButtonVariant Variant { get; set; } = ButtonVariant.secondary; | ||
[Parameter] | ||
public EventCallback<bool> PressedChangeEvent { get; set; } | ||
} | ||
} |