|
#pragma checksum "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Shared\PlainTable\Row.razor" "{8829d00f-11b8-4213-878b-770e8597ac16}" "4484a4d6553b711264699e3c01f5557e43fdf4545aeb9a1fde2c248189b9061a"
// <auto-generated/>
#pragma warning disable 1591
namespace Wasm.Performance.TestApp.Shared.PlainTable
{
#line default
using global::System;
using global::System.Collections.Generic;
using global::System.Linq;
using global::System.Threading.Tasks;
using global::Microsoft.AspNetCore.Components;
#nullable restore
#line (1,2)-(1,23) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\_Imports.razor"
using System.Net.Http
#nullable disable
;
#nullable restore
#line (2,2)-(2,47) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\_Imports.razor"
using Microsoft.AspNetCore.Components.Routing
#nullable disable
;
#nullable restore
#line (3,2)-(3,45) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\_Imports.razor"
using Microsoft.AspNetCore.Components.Forms
#nullable disable
;
#nullable restore
#line (4,2)-(4,43) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\_Imports.razor"
using Microsoft.AspNetCore.Components.Web
#nullable disable
;
#nullable restore
#line (5,2)-(5,27) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\_Imports.razor"
using Microsoft.JSInterop
#nullable disable
;
#nullable restore
#line (6,2)-(6,32) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\_Imports.razor"
using Wasm.Performance.TestApp
#nullable disable
;
#nullable restore
#line (7,2)-(7,39) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\_Imports.razor"
using Wasm.Performance.TestApp.Shared
#nullable disable
;
#nullable restore
#line (1,2)-(1,61) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Shared\PlainTable\Row.razor"
using WeatherForecast = Pages.GridRendering.WeatherForecast
#nullable disable
;
#line default
#line hidden
#nullable restore
public partial class Row : global::Microsoft.AspNetCore.Components.ComponentBase
#nullable disable
{
#pragma warning disable 1998
protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__builder.OpenElement(0, "tr");
__builder.AddAttribute(1, "style",
#nullable restore
#line (3,13)-(3,21) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Shared\PlainTable\Row.razor"
rowStyle
#line default
#line hidden
#nullable disable
);
#nullable restore
#line (4,1)-(4,5) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Shared\PlainTable\Row.razor"
#line default
#line hidden
#nullable disable
#nullable restore
#line (4,6)-(6,1) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Shared\PlainTable\Row.razor"
foreach (var item in Columns)
{
#line default
#line hidden
#nullable disable
__builder.OpenComponent<global::Wasm.Performance.TestApp.Shared.PlainTable.Cell>(2);
__builder.AddComponentParameter(3, nameof(global::Wasm.Performance.TestApp.Shared.PlainTable.Cell.
#nullable restore
#line (6,15)-(6,19) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Shared\PlainTable\Row.razor"
Item
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::Wasm.Performance.TestApp.Pages.GridRendering.WeatherForecast>(
#nullable restore
#line (6,22)-(6,26) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Shared\PlainTable\Row.razor"
Item
#line default
#line hidden
#nullable disable
));
__builder.AddComponentParameter(4, nameof(global::Wasm.Performance.TestApp.Shared.PlainTable.Cell.
#nullable restore
#line (7,15)-(7,20) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Shared\PlainTable\Row.razor"
Field
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.String>(
#nullable restore
#line (7,23)-(7,27) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Shared\PlainTable\Row.razor"
item
#line default
#line hidden
#nullable disable
));
__builder.AddComponentParameter(5, nameof(global::Wasm.Performance.TestApp.Shared.PlainTable.Cell.
#nullable restore
#line (8,15)-(8,22) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Shared\PlainTable\Row.razor"
OnClick
#line default
#line hidden
#nullable disable
), (global::System.Func<global::System.Int32, global::System.Threading.Tasks.Task>)(
#nullable restore
#line (8,25)-(8,36) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Shared\PlainTable\Row.razor"
OnCellClick
#line default
#line hidden
#nullable disable
));
__builder.CloseComponent();
#nullable restore
#line (10,1)-(11,1) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Shared\PlainTable\Row.razor"
}
#line default
#line hidden
#nullable disable
__builder.CloseElement();
}
#pragma warning restore 1998
#nullable restore
#line (14,8)-(35,1) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Shared\PlainTable\Row.razor"
private bool isSelected = false;
private string rowStyle => isSelected ? "background-color: lightblue;" : "";
[Parameter]
public WeatherForecast Item { get; set; }
[Parameter]
public List<string> Columns { get; set; }
[Parameter]
public Func<int, Task> OnClick { get; set; }
Task OnCellClick(int args)
{
isSelected = !isSelected;
return OnClick.Invoke(args);
}
#line default
#line hidden
#nullable disable
}
}
#pragma warning restore 1591
|