@namespace Connected.Components
@implements IDisposable
@inherits UIComponent

<tr class="@Classname" @onclick="@OnRowClick" @attributes="@CustomAttributes">

	@if (Context.DisplayApplyButtonAtStart(IgnoreEditable) || Context.DisplayEditbuttonAtStart(IgnoreEditable))
	{
		<Th />
	}

	@if (IsExpandable || ((Context?.Table.MultiSelection ?? false) && !IgnoreCheckbox))
	{
		<Th>
			@if (IsExpandable)
			{
				<div class="ml-4 mr-5"></div>
			}
			@if (IsCheckable)
			{
				<CheckBox @bind-Checked="IsChecked" Class="table-cell-checkbox" />
			}
		</Th>
	}
	@ChildContent
    @if (Context.DisplayApplyButtonAtEnd(IgnoreEditable) || Context.DisplayEditbuttonAtEnd(IgnoreEditable))
    {
		<Th />
	}
</tr>


