Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 15 additions & 12 deletions roles/ui/files/FWO.UI/Shared/Dropdown.razor
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
@using System.Reflection
@using System.Diagnostics;

@typeparam ElementType

@inject DomEventService eventService
@inject IJSRuntime? jsRuntime
@implements IDisposable

@typeparam ElementType

@implements IDisposable

<div id="@($"dropdown-{Id}")" class="input-group @(Small ? "input-group-sm" : "")">
<label id="@($"dropdown-input-prepend-{Id}")" class="input-group-text d-flex justify-content-center" style="width: 40px;" for="@($"dropdown-input-{Id}")">
Expand Down Expand Up @@ -47,12 +45,17 @@
}
}
</ul>

@code
{
private int xPositionDropdown;
private int yPositionDropdown;
private bool JsDisposed { get; set; }

@code
{
#nullable enable

[Inject] private DomEventService eventService { get; set; } = default!;
[Inject] private IJSRuntime? jsRuntime { get; set; }

private int xPositionDropdown;
private int yPositionDropdown;
private bool JsDisposed { get; set; }

[Parameter]
public string Id { get; set; }
Expand Down
Loading