Skip to content

Commit fde9f20

Browse files
author
SadhanaBaskaran
committed
1008467: Updated the CustomAdaptor-as-component section samples in DataGrid
1 parent 38df196 commit fde9f20

File tree

99 files changed

+60592
-1353
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+60592
-1353
lines changed

CustomAdaptor-as-component/App.razor

Lines changed: 0 additions & 12 deletions
This file was deleted.

CustomAdaptor-as-component/BlazorApp1.csproj

Lines changed: 0 additions & 14 deletions
This file was deleted.

CustomAdaptor-as-component/BlazorApp1.sln

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<Solution>
2+
<Project Path="BlazorApp1/BlazorApp1.csproj" />
3+
</Solution>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net10.0</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<BlazorDisableThrowNavigationException>true</BlazorDisableThrowNavigationException>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<PackageReference Include="Syncfusion.Blazor.Grid" Version="32.2.7" />
12+
<PackageReference Include="Syncfusion.Blazor.Themes" Version="32.2.7" />
13+
</ItemGroup>
14+
15+
</Project>

CustomAdaptor-as-component/BlazorApp1.csproj.user renamed to CustomAdaptor-as-component/BlazorApp1/BlazorApp1.csproj.user

File renamed without changes.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<base href="/" />
8+
<ResourcePreloader />
9+
<link rel="stylesheet" href="@Assets["lib/bootstrap/dist/css/bootstrap.min.css"]" />
10+
<link rel="stylesheet" href="@Assets["app.css"]" />
11+
<link rel="stylesheet" href="@Assets["BlazorApp1.styles.css"]" />
12+
<ImportMap />
13+
<link rel="icon" type="image/png" href="favicon.png" />
14+
<link href="_content/Syncfusion.Blazor.Themes/bootstrap5.css" rel="stylesheet" />
15+
<HeadOutlet @rendermode="InteractiveServer" />
16+
</head>
17+
18+
<body>
19+
<script src="_content/Syncfusion.Blazor.Core/scripts/syncfusion-blazor.min.js" type="text/javascript"></script>
20+
<Routes @rendermode="InteractiveServer" />
21+
<ReconnectModal />
22+
<script src="@Assets["_framework/blazor.web.js"]"></script>
23+
</body>
24+
25+
</html>

CustomAdaptor-as-component/Shared/MainLayout.razor renamed to CustomAdaptor-as-component/BlazorApp1/Components/Layout/MainLayout.razor

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
@inherits LayoutComponentBase
22

3-
<PageTitle>BlazorApp1</PageTitle>
4-
53
<div class="page">
64
<div class="sidebar">
75
<NavMenu />
86
</div>
97

108
<main>
119
<div class="top-row px-4">
12-
<a href="https://docs.microsoft.com/aspnet/" target="_blank">About</a>
10+
<a href="https://learn.microsoft.com/aspnet/core/" target="_blank">About</a>
1311
</div>
1412

1513
<article class="content px-4">
1614
@Body
1715
</article>
1816
</main>
1917
</div>
18+
19+
<div id="blazor-error-ui" data-nosnippet>
20+
An unhandled error has occurred.
21+
<a href="." class="reload">Reload</a>
22+
<span class="dismiss">🗙</span>
23+
</div>

CustomAdaptor-as-component/Shared/MainLayout.razor.css renamed to CustomAdaptor-as-component/BlazorApp1/Components/Layout/MainLayout.razor.css

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,27 @@ main {
2121
align-items: center;
2222
}
2323

24-
.top-row ::deep a, .top-row .btn-link {
24+
.top-row ::deep a, .top-row ::deep .btn-link {
2525
white-space: nowrap;
2626
margin-left: 1.5rem;
27+
text-decoration: none;
2728
}
2829

29-
.top-row a:first-child {
30+
.top-row ::deep a:hover, .top-row ::deep .btn-link:hover {
31+
text-decoration: underline;
32+
}
33+
34+
.top-row ::deep a:first-child {
3035
overflow: hidden;
3136
text-overflow: ellipsis;
3237
}
3338

3439
@media (max-width: 640.98px) {
35-
.top-row:not(.auth) {
36-
display: none;
37-
}
38-
39-
.top-row.auth {
40+
.top-row {
4041
justify-content: space-between;
4142
}
4243

43-
.top-row a, .top-row .btn-link {
44+
.top-row ::deep a, .top-row ::deep .btn-link {
4445
margin-left: 0;
4546
}
4647
}
@@ -63,8 +64,35 @@ main {
6364
z-index: 1;
6465
}
6566

67+
.top-row.auth ::deep a:first-child {
68+
flex: 1;
69+
text-align: right;
70+
width: 0;
71+
}
72+
6673
.top-row, article {
6774
padding-left: 2rem !important;
6875
padding-right: 1.5rem !important;
6976
}
7077
}
78+
79+
#blazor-error-ui {
80+
color-scheme: light only;
81+
background: lightyellow;
82+
bottom: 0;
83+
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
84+
box-sizing: border-box;
85+
display: none;
86+
left: 0;
87+
padding: 0.6rem 1.25rem 0.7rem 1.25rem;
88+
position: fixed;
89+
width: 100%;
90+
z-index: 1000;
91+
}
92+
93+
#blazor-error-ui .dismiss {
94+
cursor: pointer;
95+
position: absolute;
96+
right: 0.75rem;
97+
top: 0.5rem;
98+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<div class="top-row ps-3 navbar navbar-dark">
2+
<div class="container-fluid">
3+
<a class="navbar-brand" href="">BlazorApp1</a>
4+
</div>
5+
</div>
6+
7+
<input type="checkbox" title="Navigation menu" class="navbar-toggler" />
8+
9+
<div class="nav-scrollable" onclick="document.querySelector('.navbar-toggler').click()">
10+
<nav class="nav flex-column">
11+
<div class="nav-item px-3">
12+
<NavLink class="nav-link" href="" Match="NavLinkMatch.All">
13+
<span class="bi bi-house-door-fill-nav-menu" aria-hidden="true"></span> Home
14+
</NavLink>
15+
</div>
16+
17+
<div class="nav-item px-3">
18+
<NavLink class="nav-link" href="counter">
19+
<span class="bi bi-plus-square-fill-nav-menu" aria-hidden="true"></span> Counter
20+
</NavLink>
21+
</div>
22+
23+
<div class="nav-item px-3">
24+
<NavLink class="nav-link" href="weather">
25+
<span class="bi bi-list-nested-nav-menu" aria-hidden="true"></span> Weather
26+
</NavLink>
27+
</div>
28+
</nav>
29+
</div>
30+

0 commit comments

Comments
 (0)