1<tr class="@StyleClass">
2 <td class="table-col-first">
3 <img style="cursor: pointer;
4 transform: rotate(@ButtonRotation()deg);
5 transition: transform 0.1s"
6 src="Icons/arrow-icon.svg" alt="" @onclick="ToggleView" />
19 public RenderFragment? AlwaysShowContent { get; set; }
22 public RenderFragment? HideableContent { get; set; }
25 public string? StyleClass { get; set; }
27 private bool ShowContent { get; set; } = false;
29 private string ButtonRotation() => ShowContent ? "180" : "90";
31 private void ToggleView()
33 ShowContent = !ShowContent;