telerik usage fixes
This commit is contained in:
@@ -12,7 +12,6 @@ public class CardData
|
||||
? MathF.Round((Health.Value + Attack.Value) / (float)Cost.Value, 2)
|
||||
: 0;
|
||||
|
||||
|
||||
public string? Description { get; init; }
|
||||
public string? Faction { get; init; }
|
||||
public string? Set { get; init; }
|
||||
|
||||
@@ -5,18 +5,19 @@
|
||||
<div class="agents-page">
|
||||
<TelerikGrid Data="@agents"
|
||||
Sortable="true"
|
||||
FilterMode="@GridFilterMode.FilterRow"
|
||||
FilterMode="GridFilterMode.FilterRow"
|
||||
Pageable="true"
|
||||
PageSize="250"
|
||||
Resizable="true"
|
||||
Height="850px"
|
||||
Groupable="true"
|
||||
class="agents-grid">
|
||||
<GridColumns>
|
||||
<GridColumn Field="@nameof(CardData.HasImmortalize)" Title="Im." Width="120px">
|
||||
<GridColumn Field="@nameof(CardData.IsImmortalized)" Title="Im." Width="120px">
|
||||
<Template>
|
||||
@if (((CardData)context).HasImmortalize)
|
||||
@if (((CardData)context).IsImmortalized)
|
||||
{
|
||||
<i class="bi bi-star-fill" style="color: #ffd700;" title="Immortalizes"></i>
|
||||
<i class="bi bi-star-fill" style="color: #ffd700;" title="Immortalized"></i>
|
||||
}
|
||||
</Template>
|
||||
</GridColumn>
|
||||
|
||||
@@ -10,4 +10,5 @@
|
||||
@using Web
|
||||
@using Web.Layout
|
||||
@using Telerik.Blazor
|
||||
@using Telerik.Blazor.Components
|
||||
@using Telerik.Blazor.Components
|
||||
@using Telerik.DataSource
|
||||
@@ -14,6 +14,7 @@
|
||||
<link href="lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/>
|
||||
<link href="css/app.css" rel="stylesheet"/>
|
||||
<link href="_content/Telerik.UI.for.Blazor/css/kendo-theme-default/all.css" rel="stylesheet"/>
|
||||
<script src="_content/Telerik.UI.for.Blazor/js/telerik-blazor.js" defer></script>
|
||||
<link href="favicon.png" rel="icon" type="image/png"/>
|
||||
<link href="Web.styles.css" rel="stylesheet"/>
|
||||
<script type="importmap"></script>
|
||||
|
||||
Reference in New Issue
Block a user