You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Components/Components/Table/TableSortLabel.razor

27 lines
584 B

@namespace Connected.Components
@typeparam T
@inherits UIComponent
@implements IDisposable
<span @onclick="ToggleSortDirection" class="@Classname" style="@Style" @attributes="@UserAttributes">
@if (!AppendIcon)
{
@ChildContent
}
@if (Enabled)
{
@if (_direction != SortDirection.None)
{
<Icon Icon="@SortIcon" Class="@GetSortIconClass()" />
}
else
{
<Icon Icon="@SortIcon" Class="mud-table-sort-label-icon"/>
}
}
@if (AppendIcon)
{
@ChildContent
}
</span>