diff --git a/src/BlazorTable/Components/Table.razor b/src/BlazorTable/Components/Table.razor index 1710b3ec..f4817f93 100644 --- a/src/BlazorTable/Components/Table.razor +++ b/src/BlazorTable/Components/Table.razor @@ -3,13 +3,15 @@ @if (Columns.Any()) { + var columnCount = Columns.Count + (_detailTemplate != null ? 1 : 0); +
@if (ShowSearchBar) { - + } @@ -124,7 +126,7 @@ else if (_emptyDataTemplate != null) { - @@ -133,7 +135,7 @@ else { -
+ @_emptyDataTemplate
+ @if (_loadingDataTemplate != null) { @_loadingDataTemplate