Skip to content

Commit a4ee248

Browse files
Merge pull request #13 from Backiaraj/UG
Prepared UG samples for Blazor HeatMap and InPlaceEditor Components
2 parents 04043f0 + cd00b45 commit a4ee248

File tree

133 files changed

+5398
-0
lines changed

Some content is hidden

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

133 files changed

+5398
-0
lines changed

HeatMap/Client/App.razor

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Router AppAssembly="@typeof(App).Assembly">
2+
<Found Context="routeData">
3+
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
4+
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
5+
</Found>
6+
<NotFound>
7+
<PageTitle>Not found</PageTitle>
8+
<LayoutView Layout="@typeof(MainLayout)">
9+
<p role="alert">Sorry, there's nothing at this address.</p>
10+
</LayoutView>
11+
</NotFound>
12+
</Router>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net6.0</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.8" />
11+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.8" PrivateAssets="all" />
12+
<PackageReference Include="Syncfusion.Blazor.HeatMap" Version="20.2.0.49" />
13+
<PackageReference Include="Syncfusion.Blazor.Themes" Version="20.2.0.49" />
14+
</ItemGroup>
15+
16+
<ItemGroup>
17+
<ProjectReference Include="..\Shared\HeatMapUGSample.Shared.csproj" />
18+
</ItemGroup>
19+
20+
<ItemGroup>
21+
<Folder Include="Pages\Selection\" />
22+
<Folder Include="Pages\Tooltip\" />
23+
</ItemGroup>
24+
25+
</Project>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<table>
2+
<tr>
3+
<td><a href="border">Border</a></td>
4+
<td><a href="cellhighlighting">Cell Highlighting</a></td>
5+
<td><a href="margin">Margin</a></td>
6+
<td><a href="title">Title</a></td>
7+
</tr>
8+
<tr>
9+
<td><a href="datalabel">DataLabel</a></td>
10+
<td><a href="textstyle">Text Style</a></td>
11+
<td><a href="format">Format</a></td>
12+
</tr>
13+
</table>
14+
15+
16+
<style>
17+
a {
18+
padding-right: 75px;
19+
}
20+
</style>
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
@page "/border"
2+
3+
@using Syncfusion.Blazor.HeatMap
4+
<AppearanceRoute></AppearanceRoute>
5+
6+
<SfHeatMap DataSource="@HeatMapData">
7+
<HeatMapXAxis Labels="@XAxisLabels"></HeatMapXAxis>
8+
<HeatMapYAxis Labels="@YAxisLabels"></HeatMapYAxis>
9+
<HeatMapTitleSettings Text="Sales Revenue per Employee (in 1000 US$)">
10+
</HeatMapTitleSettings>
11+
<HeatMapCellSettings ShowLabel="true" TileType="CellType.Rect">
12+
<HeatMapCellBorder Width = "1" Radius = "4" Color = "White" ></HeatMapCellBorder>
13+
</HeatMapCellSettings>
14+
<HeatMapLegendSettings ShowLabel="true"></HeatMapLegendSettings>
15+
</SfHeatMap>
16+
17+
@code{
18+
int[,] GetDefaultData()
19+
{
20+
int[,] dataSource = new int[,]
21+
{
22+
{73, 39, 26, 39, 94, 0},
23+
{93, 58, 53, 38, 26, 68},
24+
{99, 28, 22, 4, 66, 90},
25+
{14, 26, 97, 69, 69, 3},
26+
{7, 46, 47, 47, 88, 6},
27+
{41, 55, 73, 23, 3, 79},
28+
};
29+
return dataSource;
30+
}
31+
string[] XAxisLabels = new string[] {"Nancy", "Andrew", "Janet", "Margaret", "Steven", "Michael" };
32+
string[] YAxisLabels = new string[] { "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
33+
public object HeatMapData { get; set; }
34+
protected override void OnInitialized()
35+
{
36+
HeatMapData = GetDefaultData();
37+
}
38+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
@page "/cellhighlighting"
2+
3+
@using Syncfusion.Blazor.HeatMap
4+
<AppearanceRoute></AppearanceRoute>
5+
6+
<SfHeatMap DataSource="@HeatMapData">
7+
<HeatMapXAxis Labels="@XAxisLabels"></HeatMapXAxis>
8+
<HeatMapYAxis Labels="@YAxisLabels"></HeatMapYAxis>
9+
<HeatMapTitleSettings Text="Sales Revenue per Employee (in 1000 US$)">
10+
</HeatMapTitleSettings>
11+
<HeatMapCellSettings ShowLabel="true" TileType="CellType.Rect" EnableCellHighlighting="true"></HeatMapCellSettings>
12+
<HeatMapLegendSettings ShowLabel="true" Position="LegendPosition.Right" EnableSmartLegend="true" ToggleVisibility="true"></HeatMapLegendSettings>
13+
</SfHeatMap>
14+
15+
@code{
16+
int[,] GetDefaultData()
17+
{
18+
int[,] dataSource = new int[,]
19+
{
20+
{73, 39, 26, 39, 94, 0},
21+
{93, 58, 53, 38, 26, 68},
22+
{99, 28, 22, 4, 66, 90},
23+
{14, 26, 97, 69, 69, 3},
24+
{7, 46, 47, 47, 88, 6},
25+
{41, 55, 73, 23, 3, 79}
26+
};
27+
return dataSource;
28+
}
29+
string[] XAxisLabels = new string[] {"Nancy", "Andrew", "Janet", "Margaret", "Steven", "Michael" };
30+
string[] YAxisLabels = new string[] { "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
31+
public object HeatMapData { get; set; }
32+
protected override void OnInitialized()
33+
{
34+
HeatMapData = GetDefaultData();
35+
}
36+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
@page "/datalabel"
2+
3+
@using Syncfusion.Blazor.HeatMap
4+
<AppearanceRoute></AppearanceRoute>
5+
6+
<SfHeatMap DataSource="@HeatMapData">
7+
<HeatMapXAxis Labels="@XAxisLabels"></HeatMapXAxis>
8+
<HeatMapYAxis Labels="@YAxisLabels"></HeatMapYAxis>
9+
<HeatMapTitleSettings Text="Sales Revenue per Employee (in 1000 US$)">
10+
</HeatMapTitleSettings>
11+
<HeatMapCellSettings ShowLabel="true" TileType="CellType.Rect"></HeatMapCellSettings>
12+
<HeatMapMargin Left="15" Right="15" Top="15" Bottom="15"></HeatMapMargin>
13+
</SfHeatMap>
14+
15+
@code{
16+
int[,] GetDefaultData()
17+
{
18+
int[,] dataSource = new int[,]
19+
{
20+
{73, 39, 26, 39, 94, 0},
21+
{93, 58, 53, 38, 26, 68},
22+
{99, 28, 22, 4, 66, 90},
23+
{14, 26, 97, 69, 69, 3},
24+
{7, 46, 47, 47, 88, 6},
25+
{41, 55, 73, 23, 3, 79}
26+
};
27+
return dataSource;
28+
}
29+
string[] XAxisLabels = new string[] {"Nancy", "Andrew", "Janet", "Margaret", "Steven", "Michael" };
30+
string[] YAxisLabels = new string[] { "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
31+
public object HeatMapData { get; set; }
32+
protected override void OnInitialized()
33+
{
34+
HeatMapData = GetDefaultData();
35+
}
36+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
@page "/format"
2+
3+
@using Syncfusion.Blazor.HeatMap
4+
<AppearanceRoute></AppearanceRoute>
5+
6+
<SfHeatMap DataSource="@HeatMapData">
7+
<HeatMapXAxis Labels="@XAxisLabels"></HeatMapXAxis>
8+
<HeatMapYAxis Labels="@YAxisLabels"></HeatMapYAxis>
9+
<HeatMapTitleSettings Text="Sales Revenue per Employee (in 1000 US$)">
10+
</HeatMapTitleSettings>
11+
<HeatMapCellSettings ShowLabel="true" TileType="CellType.Rect" Format="{value} $"></HeatMapCellSettings>
12+
<HeatMapMargin Left="15" Right="15" Top="15" Bottom="15"></HeatMapMargin>
13+
</SfHeatMap>
14+
15+
@code{
16+
int[,] GetDefaultData()
17+
{
18+
int[,] dataSource = new int[,]
19+
{
20+
{73, 39, 26, 39, 94, 0},
21+
{93, 58, 53, 38, 26, 68},
22+
{99, 28, 22, 4, 66, 90},
23+
{14, 26, 97, 69, 69, 3},
24+
{7, 46, 47, 47, 88, 6},
25+
{41, 55, 73, 23, 3, 79}
26+
};
27+
return dataSource;
28+
}
29+
string[] XAxisLabels = new string[] {"Nancy", "Andrew", "Janet", "Margaret", "Steven", "Michael" };
30+
string[] YAxisLabels = new string[] { "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
31+
public object HeatMapData { get; set; }
32+
protected override void OnInitialized()
33+
{
34+
HeatMapData = GetDefaultData();
35+
}
36+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
@page "/margin"
2+
3+
@using Syncfusion.Blazor.HeatMap
4+
<AppearanceRoute></AppearanceRoute>
5+
6+
<SfHeatMap DataSource="@HeatMapData">
7+
<HeatMapXAxis Labels="@XAxisLabels"></HeatMapXAxis>
8+
<HeatMapYAxis Labels="@YAxisLabels"></HeatMapYAxis>
9+
<HeatMapTitleSettings Text="Sales Revenue per Employee (in 1000 US$)">
10+
</HeatMapTitleSettings>
11+
<HeatMapCellSettings ShowLabel="true" TileType="CellType.Rect"></HeatMapCellSettings>
12+
<HeatMapMargin Left="15" Right="15" Top="15" Bottom="15"></HeatMapMargin>
13+
<HeatMapLegendSettings ShowLabel="true" Position="LegendPosition.Right" EnableSmartLegend="true" ToggleVisibility="true"></HeatMapLegendSettings>
14+
</SfHeatMap>
15+
16+
@code{
17+
int[,] GetDefaultData()
18+
{
19+
int[,] dataSource = new int[,]
20+
{
21+
{73, 39, 26, 39, 94, 0},
22+
{93, 58, 53, 38, 26, 68},
23+
{99, 28, 22, 4, 66, 90},
24+
{14, 26, 97, 69, 69, 3},
25+
{7, 46, 47, 47, 88, 6},
26+
{41, 55, 73, 23, 3, 79}
27+
};
28+
return dataSource;
29+
}
30+
string[] XAxisLabels = new string[] {"Nancy", "Andrew", "Janet", "Margaret", "Steven", "Michael" };
31+
string[] YAxisLabels = new string[] { "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
32+
public object HeatMapData { get; set; }
33+
protected override void OnInitialized()
34+
{
35+
HeatMapData = GetDefaultData();
36+
}
37+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
@page "/textstyle"
2+
3+
@using Syncfusion.Blazor.HeatMap
4+
<AppearanceRoute></AppearanceRoute>
5+
6+
<SfHeatMap DataSource="@HeatMapData">
7+
<HeatMapXAxis Labels="@XAxisLabels"></HeatMapXAxis>
8+
<HeatMapYAxis Labels="@YAxisLabels"></HeatMapYAxis>
9+
<HeatMapTitleSettings Text="Sales Revenue per Employee (in 1000 US$)">
10+
<HeatMapTitleTextStyle Size="15px" FontWeight="500" FontStyle="Italic" FontFamily="Segoe UI"></HeatMapTitleTextStyle>
11+
</HeatMapTitleSettings>
12+
<HeatMapCellSettings ShowLabel="true" TileType="CellType.Rect">
13+
<HeatMapCellTextStyle Size="15px" FontWeight="500" FontStyle="Italic" FontFamily="Segoe UI"></HeatMapCellTextStyle>
14+
</HeatMapCellSettings>
15+
<HeatMapMargin Left="15" Right="15" Top="15" Bottom="15"></HeatMapMargin>
16+
</SfHeatMap>
17+
18+
@code{
19+
int[,] GetDefaultData()
20+
{
21+
int[,] dataSource = new int[,]
22+
{
23+
{73, 39, 26, 39, 94, 0},
24+
{93, 58, 53, 38, 26, 68},
25+
{99, 28, 22, 4, 66, 90},
26+
{14, 26, 97, 69, 69, 3},
27+
{7, 46, 47, 47, 88, 6},
28+
{41, 55, 73, 23, 3, 79}
29+
};
30+
return dataSource;
31+
}
32+
string[] XAxisLabels = new string[] {"Nancy", "Andrew", "Janet", "Margaret", "Steven", "Michael" };
33+
string[] YAxisLabels = new string[] { "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
34+
public object HeatMapData { get; set; }
35+
protected override void OnInitialized()
36+
{
37+
HeatMapData = GetDefaultData();
38+
}
39+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
@page "/title"
2+
3+
@using Syncfusion.Blazor.HeatMap
4+
<AppearanceRoute></AppearanceRoute>
5+
6+
<SfHeatMap DataSource="@HeatMapData">
7+
<HeatMapXAxis Labels="@XAxisLabels"></HeatMapXAxis>
8+
<HeatMapYAxis Labels="@YAxisLabels"></HeatMapYAxis>
9+
<HeatMapTitleSettings Text="Sales Revenue per Employee (in 1000 US$)">
10+
<HeatMapTitleTextStyle Size = "15px" FontWeight = "500" FontStyle = "Italic" FontFamily = "Segoe UI"></HeatMapTitleTextStyle>
11+
</HeatMapTitleSettings>
12+
<HeatMapCellSettings ShowLabel="true" TileType="CellType.Rect"></HeatMapCellSettings>
13+
<HeatMapMargin Left="15" Right="15" Top="15" Bottom="15"></HeatMapMargin>
14+
<HeatMapLegendSettings ShowLabel="true" Position="LegendPosition.Right" EnableSmartLegend="true" ToggleVisibility="true"></HeatMapLegendSettings>
15+
</SfHeatMap>
16+
17+
@code{
18+
int[,] GetDefaultData()
19+
{
20+
int[,] dataSource = new int[,]
21+
{
22+
{73, 39, 26, 39, 94, 0},
23+
{93, 58, 53, 38, 26, 68},
24+
{99, 28, 22, 4, 66, 90},
25+
{14, 26, 97, 69, 69, 3},
26+
{7, 46, 47, 47, 88, 6},
27+
{41, 55, 73, 23, 3, 79}
28+
};
29+
return dataSource;
30+
}
31+
string[] XAxisLabels = new string[] {"Nancy", "Andrew", "Janet", "Margaret", "Steven", "Michael" };
32+
string[] YAxisLabels = new string[] { "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
33+
public object HeatMapData { get; set; }
34+
protected override void OnInitialized()
35+
{
36+
HeatMapData = GetDefaultData();
37+
}
38+
}

0 commit comments

Comments
 (0)