Skip to content

Commit

Permalink
Remove no usage attribute in component
Browse files Browse the repository at this point in the history
  • Loading branch information
juhangil committed Oct 5, 2024
1 parent 8216c23 commit 692ddfb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
@inherits FluentComponentBase

<div id="@Id">
<div id="@Id">
<label id=@($"{Id}-label") for=@($"{Id}-content")
class="parameter-child-label"
style="display:inline-block;padding-left:5px;">
Expand Down Expand Up @@ -41,6 +39,9 @@
[Parameter, EditorRequired]
public string TooltipText { get; set; } = string.Empty;

[Parameter]
public string? Id { get; set; }

public IEnumerable<string> Value => stopSequenceValue;

private IEnumerable<string> stopSequenceValue = new List<string>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@inherits FluentComponentBase
@typeparam TValue where TValue : System.Numerics.INumber<TValue>
@typeparam TValue where TValue : System.Numerics.INumber<TValue>

<div id="@Id">
<label id=@($"{Id}-label") class="parameter-component-label" for=@($"{Id}-content")>
Expand Down Expand Up @@ -32,9 +31,9 @@

@if (!hasNoError)
{
<FluentCard Class="parameter-component-error">
<FluentCard Class="parameter-component-error">
@errorText
</FluentCard>
</FluentCard>
}
</div>

Expand All @@ -51,6 +50,9 @@
[Parameter]
public TValue? Value { get; set; }

[Parameter]
public string? Id { get; set; }

[Parameter]
public EventCallback<TValue> ValueChanged { get; set; }

Expand Down

0 comments on commit 692ddfb

Please sign in to comment.