Use Radzen
This commit is contained in:
@ -7,12 +7,14 @@
|
||||
<base href="/" />
|
||||
<link rel="stylesheet" href="app.css" />
|
||||
<link rel="stylesheet" href="Hcs.WebApp.styles.css" />
|
||||
<RadzenTheme Theme="material" @rendermode="InteractiveServer" />
|
||||
<HeadOutlet />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<Routes />
|
||||
<script src="_framework/blazor.web.js"></script>
|
||||
<script src="_content/Radzen.Blazor/Radzen.Blazor.js?v=@(typeof(Radzen.Colors).Assembly.GetName().Version)"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
@inherits LayoutComponentBase
|
||||
|
||||
<RadzenComponents @rendermode="InteractiveServer" />
|
||||
|
||||
@Body
|
||||
|
||||
<div id="blazor-error-ui">
|
||||
|
||||
@ -5,3 +5,8 @@
|
||||
<h1>Привет, мир!</h1>
|
||||
|
||||
Добро пожаловать!
|
||||
|
||||
<RadzenButton Click="@ButtonClicked" Text="Нажми меня"></RadzenButton>
|
||||
@code {
|
||||
void ButtonClicked() { }
|
||||
}
|
||||
|
||||
@ -8,3 +8,5 @@
|
||||
@using Microsoft.JSInterop
|
||||
@using Hcs.WebApp
|
||||
@using Hcs.WebApp.Components
|
||||
@using Radzen
|
||||
@using Radzen.Blazor
|
||||
|
||||
@ -1,10 +1,13 @@
|
||||
using Hcs.WebApp.Components;
|
||||
using Radzen;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
builder.Services
|
||||
.AddRazorComponents()
|
||||
.AddInteractiveServerComponents();
|
||||
|
||||
builder.Services.AddRadzenComponents();
|
||||
|
||||
var app = builder.Build();
|
||||
if (!app.Environment.IsDevelopment())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user