event logging fix

This commit is contained in:
Shaun Walker
2019-10-28 09:02:11 -04:00
parent 72c7f4abb0
commit af423edb99
6 changed files with 83 additions and 14 deletions

View File

@ -5,7 +5,7 @@
<p>
@if(Format == "Table")
{
<table class="table table-borderless">
<table class="@Class">
<thead>
<tr>@Header</tr>
</thead>
@ -19,7 +19,7 @@
}
@if(Format == "Grid")
{
<div class="container">
<div class="@Class">
<div class="row">@Header</div>
@foreach (var item in ItemList)
{
@ -81,6 +81,9 @@
[Parameter]
public string DisplayPages { get; set; }
[Parameter]
public string Class { get; set; }
IEnumerable<TableItem> ItemList { get; set; }
protected override void OnParametersSet()
@ -89,6 +92,17 @@
{
Format = "Table";
}
if (string.IsNullOrEmpty(Class))
{
if (Format == "Table")
{
Class = "table table-borderless";
}
else
{
Class = "container";
}
}
if (string.IsNullOrEmpty(PageSize))
{
MaxItems = 10;