Skip to content

Commit a512a08

Browse files
config(EJ2-26673): commit for samples updation
1 parent da4375e commit a512a08

File tree

63 files changed

+3128
-1299
lines changed

Some content is hidden

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

63 files changed

+3128
-1299
lines changed

ej2-blazor-samples/Pages/Buttons/Button/ButtonGroup.razor

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,4 @@
153153
overflow-y: scroll;
154154
}
155155
}
156-
</style>
157-
158-
@functions{
159-
160-
}
156+
</style>

ej2-blazor-samples/Pages/Buttons/Button/CheckBox.razor

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,3 @@
8989
margin: 20px 0;
9090
}
9191
</style>
92-
93-
@functions{
94-
95-
}

ej2-blazor-samples/Pages/Buttons/Button/DropDownButton.razor

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
@using Syncfusion.EJ2.RazorComponents.SplitButtons
44

5-
65
@*Hidden:Lines*@
76
@using ej2_blazor_samples
87
@{

ej2-blazor-samples/Pages/Buttons/Button/RadioButton.razor

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,4 @@
8383
.e-bigger .radio-control h4 {
8484
font-size: 20px;
8585
}
86-
</style>
87-
88-
@functions{
89-
90-
}
86+
</style>

ej2-blazor-samples/Pages/Buttons/Button/Switch.razor

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,3 @@
9595
pointer-events: none;
9696
}
9797
</style>
98-
99-
@functions{
100-
101-
}

ej2-blazor-samples/Pages/Calendars/Calendar/DateRange.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@
4242
</style>
4343

4444
@functions{
45-
public DateTime minDate {get;set;} = new DateTime(DateTime.Now.Year,DateTime.Now.Month,05);
46-
public DateTime maxDate {get;set;} = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 27);
45+
public DateTime minDate { get; set; } = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 05);
46+
public DateTime maxDate { get; set; } = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 27);
4747
}

ej2-blazor-samples/Pages/Calendars/DateRangePicker/Format.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@page "/DateRangePicker/Format"
22

3-
@using Syncfusion.EJ2.RazorComponents.Calendars;
4-
@using System;
3+
@using Syncfusion.EJ2.RazorComponents.Calendars
4+
@using System
55

66
@*Hidden:Lines*@
77
@using ej2_blazor_samples
@@ -46,6 +46,6 @@
4646
</style>
4747

4848
@functions{
49-
public DateTime start { get; set; } = DateTime.Now;
50-
public DateTime end { get; set; } = DateTime.Now.AddDays(20);
49+
public DateTime start {get;set;} = DateTime.Now;
50+
public DateTime end {get;set;} = DateTime.Now.AddDays(20);
5151
}

ej2-blazor-samples/Pages/Charts/StockChart/HideSelector.razor

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
@*End:Hidden*@
2929

3030
<div class="control-section">
31-
<EjsStockChart id="stockChart" title="AAPL Stock Price" series="@seriesData" primaryXAxis="@xAxis" primaryYAxis="@yAxis" tooltip="@tooltip" dataSource="@data" enableSelector="false">
31+
<EjsStockChart id="stockChart" title="AAPL Stock Price" series="@seriesData" primaryXAxis="@xAxis"
32+
primaryYAxis="@yAxis" tooltip="@tooltip" dataSource="@data" periods="@periods" enableSelector="false">
3233
</EjsStockChart>
3334
</div>
3435

@@ -70,19 +71,23 @@
7071

7172
public List<object> data { get; set; } = new List<object> {
7273

73-
new LineChartData { xValue = new DateTime(2005, 01, 01), yValue = 21, yValue1 = 28 },
74-
new LineChartData { xValue = new DateTime(2006, 01, 01), yValue = 24, yValue1 = 44 },
75-
new LineChartData { xValue = new DateTime(2007, 01, 01), yValue = 36, yValue1 = 48 },
76-
new LineChartData { xValue = new DateTime(2008, 01, 01), yValue = 38, yValue1 = 50 },
77-
new LineChartData { xValue = new DateTime(2009, 01, 01), yValue = 54, yValue1 = 66 },
78-
new LineChartData { xValue = new DateTime(2010, 01, 01), yValue = 57, yValue1 = 78 },
79-
new LineChartData { xValue = new DateTime(2011, 01, 01), yValue = 70, yValue1 = 84 },
74+
new LineChartData { xValue = new DateTime(2005, 01, 01), yValue = 21, yValue1 = 28, open = 85.9757, high = 90.6657, low = 85.7685, close = 90.5257 },
75+
new LineChartData { xValue = new DateTime(2006, 01, 01), yValue = 24, yValue1 = 44, open = 89.4471, high = 92, low = 86.2157, close = 86.4614 },
76+
new LineChartData { xValue = new DateTime(2007, 01, 01), yValue = 36, yValue1 = 48, open = 87.1514, high = 88.6071,low = 81.4885,close = 81.8543 },
77+
new LineChartData { xValue = new DateTime(2008, 01, 01), yValue = 38, yValue1 = 50, open = 81.5157, high = 88.2857, low = 79.2857,close = 86.1428 },
78+
new LineChartData { xValue = new DateTime(2009, 01, 01), yValue = 54, yValue1 = 66, open = 80.2143, high = 82.2685,low = 79.8185,close = 80.9585 },
79+
new LineChartData { xValue = new DateTime(2010, 01, 01), yValue = 57, yValue1 = 78, open = 80.3671, high = 81.0728,low = 74.5971,close = 75.7685 },
80+
new LineChartData { xValue = new DateTime(2011, 01, 01), yValue = 70, yValue1 = 84, open = 76.3571, high = 82.3571,low = 76.2928,close = 80.3271}
8081
};
8182

8283
public class LineChartData
8384
{
8485
public DateTime xValue;
85-
public double yValue;
86+
public double high;
87+
public double low;
88+
public double open;
89+
public double close;
90+
public double yValue;
8691
public double yValue1;
8792
};
8893

@@ -92,6 +97,14 @@
9297
public List<object> seriesData { get; set; } = new List<object>
9398
{
9499
new { xName = "xValue", type = "Line", yName = "yValue" }
100+
};
101+
102+
public List<object> periods { get; set; } = new List<object>
103+
{
104+
new { intervalType= "Minutes", interval= 1, text= "1m" },
105+
new { intervalType= "Years", interval= 1, text= "iY" },
106+
new { intervalType= "Hours", interval= 1, text= "1H" },
107+
new { intervalType= "Years", interval= 2, text= "2Y", selected= true },
95108
};
96109

97110
}

ej2-blazor-samples/Pages/Charts/StockChart/StockChart.razor

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
@*End:Hidden*@
2929

3030
<div class="control-section">
31-
<EjsStockChart id="stockChart" title="AAPL Stock Price" series="@seriesData" primaryXAxis="@xAxis" primaryYAxis="@yAxis" tooltip="@tooltip" dataSource="@data">
31+
<EjsStockChart id="stockChart" title="AAPL Stock Price" series="@seriesData" primaryXAxis="@xAxis" primaryYAxis="@yAxis" tooltip="@tooltip" dataSource="@data"
32+
periods="@periods">
3233
</EjsStockChart>
3334
</div>
3435

@@ -72,20 +73,24 @@
7273
};
7374

7475
public List<object> data { get; set; } = new List<object> {
75-
76-
new LineChartData { xValue = new DateTime(2005, 01, 01), yValue = 21, yValue1 = 28 },
77-
new LineChartData { xValue = new DateTime(2006, 01, 01), yValue = 24, yValue1 = 44 },
78-
new LineChartData { xValue = new DateTime(2007, 01, 01), yValue = 36, yValue1 = 48 },
79-
new LineChartData { xValue = new DateTime(2008, 01, 01), yValue = 38, yValue1 = 50 },
80-
new LineChartData { xValue = new DateTime(2009, 01, 01), yValue = 54, yValue1 = 66 },
81-
new LineChartData { xValue = new DateTime(2010, 01, 01), yValue = 57, yValue1 = 78 },
82-
new LineChartData { xValue = new DateTime(2011, 01, 01), yValue = 70, yValue1 = 84 },
76+
77+
new LineChartData { xValue = new DateTime(2005, 01, 01), yValue = 21, yValue1 = 28, open = 85.9757, high = 90.6657, low = 85.7685, close = 90.5257 },
78+
new LineChartData { xValue = new DateTime(2006, 01, 01), yValue = 24, yValue1 = 44, open = 89.4471, high = 92, low = 86.2157, close = 86.4614 },
79+
new LineChartData { xValue = new DateTime(2007, 01, 01), yValue = 36, yValue1 = 48, open = 87.1514, high = 88.6071,low = 81.4885,close = 81.8543 },
80+
new LineChartData { xValue = new DateTime(2008, 01, 01), yValue = 38, yValue1 = 50, open = 81.5157, high = 88.2857, low = 79.2857,close = 86.1428 },
81+
new LineChartData { xValue = new DateTime(2009, 01, 01), yValue = 54, yValue1 = 66, open = 80.2143, high = 82.2685,low = 79.8185,close = 80.9585 },
82+
new LineChartData { xValue = new DateTime(2010, 01, 01), yValue = 57, yValue1 = 78, open = 80.3671, high = 81.0728,low = 74.5971,close = 75.7685 },
83+
new LineChartData { xValue = new DateTime(2011, 01, 01), yValue = 70, yValue1 = 84, open = 76.3571, high = 82.3571,low = 76.2928,close = 80.3271 }
8384
};
8485

8586
public class LineChartData
8687
{
8788
public DateTime xValue;
88-
public double yValue;
89+
public double high;
90+
public double low;
91+
public double open;
92+
public double close;
93+
public double yValue;
8994
public double yValue1;
9095
};
9196

@@ -95,6 +100,14 @@
95100
public List<object> seriesData { get; set; } = new List<object>
96101
{
97102
new { xName = "xValue", type = "Line", yName = "yValue" }
98-
};
103+
};
104+
105+
public List<object> periods { get; set; } = new List<object>
106+
{
107+
new { intervalType= "Minutes", interval= 1, text= "1m" },
108+
new { intervalType= "Years", interval= 1, text= "iY" },
109+
new { intervalType= "Hours", interval= 1, text= "1H" },
110+
new { intervalType= "Years", interval= 2, text= "2Y", selected= true },
111+
};
99112

100113
}

ej2-blazor-samples/Pages/DocumentEditor/DocumentEditor/CharacterFormat.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@page "/DocumentEditor/CharacterFormat"
22

3-
@using Syncfusion.EJ2.RazorComponents.DocumentEditor
3+
@using Syncfusion.EJ2.RazorComponents.DocumentEditor;
44
@using Newtonsoft.Json;
55
@inject HttpClient Http;
66
@using Syncfusion.EJ2.RazorComponents.SplitButtons;

0 commit comments

Comments
 (0)