Skip to content

Commit

Permalink
HxFormValueComponentRenderer_Label usage (instead of direct <label> r…
Browse files Browse the repository at this point in the history
…endering)
  • Loading branch information
hakenr committed Nov 26, 2024
1 parent 096dfd5 commit e82f5e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ protected override void BuildRenderInput(RenderTreeBuilder builder)
builder.AddAttribute(103, nameof(HxMultiSelectInternal<TValue, TItem>.InputText), GetInputText());
builder.AddAttribute(104, nameof(HxMultiSelectInternal<TValue, TItem>.EnabledEffective), EnabledEffective);
builder.AddAttribute(125, nameof(HxMultiSelectInternal<TValue, TItem>.LabelTypeEffective), LabelTypeEffective);
builder.AddAttribute(126, nameof(HxMultiSelectInternal<TValue, TItem>.LabelText), Label);
builder.AddAttribute(126, nameof(HxMultiSelectInternal<TValue, TItem>.FormValueComponent), this);
builder.AddAttribute(105, nameof(HxMultiSelectInternal<TValue, TItem>.ItemsToRender), _itemsToRender);
builder.AddAttribute(106, nameof(HxMultiSelectInternal<TValue, TItem>.TextSelector), TextSelector);
builder.AddAttribute(107, nameof(HxMultiSelectInternal<TValue, TItem>.ValueSelector), ValueSelector);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

@if (LabelTypeEffective == LabelType.Floating)
{
<label for="@InputId">@LabelText</label>
<HxFormValueComponentRenderer_Label FormValueComponent="@FormValueComponent" />
}

@* Must be always rendered otherwise does not work after disable->enabled scenario *@
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public partial class HxMultiSelectInternal<TValue, TItem> : IAsyncDisposable

[Parameter] public string InputText { get; set; }

[Parameter] public string LabelText { get; set; }
[Parameter] public IFormValueComponent FormValueComponent { get; set; }

[Parameter] public bool EnabledEffective { get; set; }

Expand Down

0 comments on commit e82f5e0

Please sign in to comment.