Skip to content

Commit fe916f1

Browse files
author
Sridhar S
authored
Merge pull request #3 from kmuthukumar23/EJ2-24192-move-github
Updated version into v0.9.0
2 parents 36256ed + 1540ee8 commit fe916f1

28 files changed

+473
-402
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/bin
2+
/obj
3+
/.vs

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This section guides you to use the Syncfusion ASP.NET Core Razor Components UI C
1616
The samples requires the below requirements to run.
1717

1818
* [Visual Studio 2019](https://visualstudio.microsoft.com/downloads/#2019rc)
19-
* [.NET Core SDK 3.0 Preview](https://dotnet.microsoft.com/download/dotnet-core/3.0)
19+
* [.NET Core SDK 3.0 Preview3](https://dotnet.microsoft.com/download/dotnet-core/3.0)
2020

2121
## Documentation
2222

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@
4848
<div class="control-section">
4949
<div class="checkbox-control">
5050
<div class="row">
51-
<EjsCheckBox id="cboxChecked" Checked="true" Label="CheckBox: true" Change="@onChange"></EjsCheckBox>
51+
<EjsCheckBox ID="cboxChecked" Checked="true" Label="CheckBox"></EjsCheckBox>
5252
</div>
5353
<div class="row">
54-
<EjsCheckBox id="disabled" Disabled="true" Checked="true" Label="Checked,Disabled"></EjsCheckBox>
54+
<EjsCheckBox ID="disabled" Disabled="true" Checked="true" Label="Checked,Disabled"></EjsCheckBox>
5555
</div>
5656
<div class="row">
57-
<EjsCheckBox id="indeterminate" Indeterminate="true" Disabled="true" Label="Intermediate,Disabled"></EjsCheckBox>
57+
<EjsCheckBox ID="indeterminate" Indeterminate="true" Disabled="true" Label="Intermediate,Disabled"></EjsCheckBox>
5858
</div>
5959
</div>
6060
</div>
@@ -92,8 +92,4 @@
9292

9393
@functions{
9494

95-
EjsCheckBox cboxChecked;
96-
private void onChange(ChangeEventArgs args) {
97-
this.cboxChecked.Label = "CheckBox: " + args.Checked;
98-
}
9995
}

ej2-blazor-samples/Pages/Buttons/Button/ProgressButton.cshtml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
</div>
7474
<div class="col-xs-12 col-sm-12 col-lg-6 col-md-6">
7575
<EjsProgressButton ID="contract" Content="Contract" EnableProgress="true" CssClass="e-success e-small" Begin="@contractBegin"
76-
End="@contractEnd"></EjsProgressButton>
76+
End="@contractEnd" ref="contractBtn"></EjsProgressButton>
7777
</div>
7878
</div>
7979
<div class="col-xs-6 col-sm-6 col-lg-6 col-md-6">
@@ -182,7 +182,7 @@
182182
</style>
183183

184184
@functions{
185-
EjsProgressButton contract;
185+
EjsProgressButton contractBtn;
186186

187187
object spinRight = new { position = "Right" };
188188
object spinTop = new { position = "Top" };
@@ -195,11 +195,13 @@
195195

196196
private void contractBegin(ProgressEventArgs args)
197197
{
198-
this.contract.CssClass = "e-round";
198+
this.contractBtn.CssClass = "e-success e-small e-round";
199+
this.contractBtn.DataBind();
199200
}
200201

201202
private void contractEnd(ProgressEventArgs args)
202203
{
203-
this.contract.CssClass = "";
204+
this.contractBtn.CssClass = "e-success e-small";
205+
this.contractBtn.DataBind();
204206
}
205207
}

ej2-blazor-samples/Pages/DocumentEditor/DocumentEditor/BulletsAndNumbering.cshtml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
@page "/DocumentEditor/BulletsAndNumbering"
22

3-
@using Syncfusion.EJ2.RazorComponents.DocumentEditor
3+
@using Syncfusion.EJ2.RazorComponents.DocumentEditor;
44
@using Newtonsoft.Json;
5-
@inject HttpClient Http
6-
@using Syncfusion.EJ2.RazorComponents.SplitButtons
5+
@inject HttpClient Http;
6+
@using Syncfusion.EJ2.RazorComponents.SplitButtons;
7+
@inject IJSRuntime JsRuntime;
78

89

910
@*Hidden:Lines*@
@@ -14,15 +15,15 @@
1415
SampleBrowser.CurrentControlCategory = "DocumentEditor";
1516
SampleBrowser.CurrentControl = SampleBrowser.Config.DocumentEditor;
1617
SampleBrowser.ActionDescription = new string[] {
17-
@"<p>This example demonstrates bullets and numbering support in document editor. Both single list and multi-level lists
18-
are supported. </p>"
19-
};
18+
@"<p>This example demonstrates bullets and numbering support in document editor. Both single list and multi-level lists
19+
are supported. </p>"
20+
};
2021
SampleBrowser.Description = new string[] {
21-
@" <p>In this example, you can use, add, or modify the list formatting in document editor.</p>
22-
<p style='display:block'> More information about the document editor features can be found in this <a target=""_blank""
23-
href=""https://ej2.syncfusion.com/aspnet-core-razor-components/documentation/"">documentation section.</a>
24-
</p>"
25-
};
22+
@" <p>In this example, you can use, add, or modify the list formatting in document editor.</p>
23+
<p style='display:block'> More information about the document editor features can be found in this <a target=""_blank""
24+
href=""https://ej2.syncfusion.com/aspnet-core-razor-components/documentation/"">documentation section.</a>
25+
</p>"
26+
};
2627
}
2728
@*End:Hidden*@
2829

@@ -127,23 +128,23 @@
127128
private string DocumentName {get;set;} ="Getting Started";
128129
private async void onCreate(object args)
129130
{
130-
await JSRuntime.Current.InvokeAsync<bool>
131+
await JsRuntime.InvokeAsync<bool>
131132
("AfterRender","Bullets and Numbering");
132133
}
133134

134135
private async void onExport(object args)
135136
{
136-
await JSRuntime.Current.InvokeAsync<bool>
137+
await JsRuntime.InvokeAsync<bool>
137138
("OnExportClick",args);
138139
}
139140

140141
private async void onDocxExport(object args){
141-
await JSRuntime.Current.InvokeAsync<bool>
142+
await JsRuntime.InvokeAsync<bool>
142143
("OnDocxExport");
143144
}
144145
private async void onPrint(object args)
145146
{
146-
await JSRuntime.Current.InvokeAsync<bool>
147+
await JsRuntime.InvokeAsync<bool>
147148
("Print");
148149
}
149150

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

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
@using Syncfusion.EJ2.RazorComponents.DocumentEditor
44
@using Newtonsoft.Json;
5-
@inject HttpClient Http
6-
@using Syncfusion.EJ2.RazorComponents.SplitButtons
5+
@inject HttpClient Http;
6+
@using Syncfusion.EJ2.RazorComponents.SplitButtons;
7+
@inject IJSRuntime JsRuntime;
78

89

910
@*Hidden:Lines*@
@@ -14,23 +15,23 @@
1415
SampleBrowser.CurrentControlCategory = "DocumentEditor";
1516
SampleBrowser.CurrentControl = SampleBrowser.Config.DocumentEditor;
1617
SampleBrowser.ActionDescription = new string[] {
17-
@"<p>This example demonstrates the character formatting options in DocumentEditor such as bold, italic, underline, strikethrough,
18-
subscript, superscript, font, font size, font color, and highlight color.</p>"
19-
};
18+
@"<p>This example demonstrates the character formatting options in DocumentEditor such as bold, italic, underline, strikethrough,
19+
subscript, superscript, font, font size, font color, and highlight color.</p>"
20+
};
2021
SampleBrowser.Description = new string[] {
21-
@"<p>In this example, you can find character formatting features in the document editor.</p>
22-
<ul>
23-
<li>Bold and Italic.</li>
24-
<li>Underline.</li>
25-
<li>Single strike and double strikes.</li>
26-
<li>Superscript and subscript.</li>
27-
<li>Font and highlight colors.</li>
28-
<li>Different fonts and sizes.</li>
29-
</ul>
30-
<p style='display:block'> More information about the document editor features can be found in this <a target=""_blank""
31-
href=""https://ej2.syncfusion.com/aspnet-core-razor-components/documentation/"">documentation section.</a>
32-
</p>"
33-
};
22+
@"<p>In this example, you can find character formatting features in the document editor.</p>
23+
<ul>
24+
<li>Bold and Italic.</li>
25+
<li>Underline.</li>
26+
<li>Single strike and double strikes.</li>
27+
<li>Superscript and subscript.</li>
28+
<li>Font and highlight colors.</li>
29+
<li>Different fonts and sizes.</li>
30+
</ul>
31+
<p style='display:block'> More information about the document editor features can be found in this <a target=""_blank""
32+
href=""https://ej2.syncfusion.com/aspnet-core-razor-components/documentation/"">documentation section.</a>
33+
</p>"
34+
};
3435
}
3536
@*End:Hidden*@
3637

@@ -42,7 +43,7 @@
4243
</div>
4344
<div style="float:right" onclick="@onPrint">
4445
<Ejsbutton id="de-print" cssClass="printIconCss" iconCss="e-de-icon-Print">Print</Ejsbutton>
45-
</div>
46+
</div>
4647
</div>
4748
<EjsDocumentEditorContainer ID="container" enableToolbar=true created="@onCreate"></EjsDocumentEditorContainer>
4849
</div>
@@ -135,23 +136,23 @@
135136
private string DocumentName {get;set;} ="Getting Started";
136137
private async void onCreate(object args)
137138
{
138-
await JSRuntime.Current.InvokeAsync<bool>
139+
await JsRuntime.InvokeAsync<bool>
139140
("AfterRender","Character Formatting");
140141
}
141142

142143
private async void onExport(object args)
143144
{
144-
await JSRuntime.Current.InvokeAsync<bool>
145+
await JsRuntime.InvokeAsync<bool>
145146
("OnExportClick",args);
146147
}
147148

148149
private async void onDocxExport(object args){
149-
await JSRuntime.Current.InvokeAsync<bool>
150+
await JsRuntime.InvokeAsync<bool>
150151
("OnDocxExport");
151152
}
152153
private async void onPrint(object args)
153154
{
154-
await JSRuntime.Current.InvokeAsync<bool>
155+
await JsRuntime.InvokeAsync<bool>
155156
("Print");
156157
}
157158

ej2-blazor-samples/Pages/DocumentEditor/DocumentEditor/DefaultFunctionalities.cshtml

Lines changed: 39 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
@page "/DocumentEditor/DefaultFunctionalities"
22

3-
@using Syncfusion.EJ2.RazorComponents.DocumentEditor
3+
@using Syncfusion.EJ2.RazorComponents.DocumentEditor;
44
@using Newtonsoft.Json;
5-
@inject HttpClient Http
6-
@using Syncfusion.EJ2.RazorComponents.SplitButtons
5+
@inject HttpClient Http;
6+
@using Syncfusion.EJ2.RazorComponents.SplitButtons;
7+
@inject IJSRuntime JsRuntime;
78

89

910
@*Hidden:Lines*@
@@ -14,28 +15,28 @@
1415
SampleBrowser.CurrentControlCategory = "DocumentEditor";
1516
SampleBrowser.CurrentControl = SampleBrowser.Config.DocumentEditor;
1617
SampleBrowser.ActionDescription = new string[] {
17-
@"<p>This example demonstrates how to create, edit, and print Word documents (DOCX) online using document editor without any
18-
server-side dependencies.</p>"
19-
};
18+
@"<p>This example demonstrates how to create, edit, and print Word documents (DOCX) online using document editor without any
19+
server-side dependencies.</p>"
20+
};
2021
SampleBrowser.Description = new string[] {
21-
@"<p>In this example, you can create and edit Word documents online much faster and easier using intuitive UI options of the
22-
document editor. All independent features of the document editor component are defined as separate modules to help
23-
build a lightweight Word editor with the features you require.</p>
24-
<p style='display: block'>Features of document editor:</p>
25-
<ul>
26-
<li>Create and edit: Opens and saves documents in native 'Syncfusion Document Text (*.sfdt)' file format without any
27-
server-side dependencies. This helps build a purely client-side Word editor application.</li>
28-
<li>Supported elements: Document elements like text, images, hyperlinks, tables, bookmarks, page numbers, tables of contents,
29-
headers, and footers.</li>
30-
<li>Formatting: Text levels, paragraph levels, bullets and numbering, table levels, page settings, and styles.</li>
31-
<li>Editing operations: Undo, redo, cut, copy, and paste.</li>
32-
<li>Find and replace text within the document.</li>
33-
<li>Interactions through touch, mouse, and keyboard.</li>
34-
</ul>
35-
<p style='display: block'> More information about the document editor features can be found in this
36-
<a target=""_blank"" href=""https://ej2.syncfusion.com/aspnet-core-razor-components/documentation/"">documentation section.</a>
37-
</p>"
38-
};
22+
@"<p>In this example, you can create and edit Word documents online much faster and easier using intuitive UI options of the
23+
document editor. All independent features of the document editor component are defined as separate modules to help
24+
build a lightweight Word editor with the features you require.</p>
25+
<p style='display: block'>Features of document editor:</p>
26+
<ul>
27+
<li>Create and edit: Opens and saves documents in native 'Syncfusion Document Text (*.sfdt)' file format without any
28+
server-side dependencies. This helps build a purely client-side Word editor application.</li>
29+
<li>Supported elements: Document elements like text, images, hyperlinks, tables, bookmarks, page numbers, tables of contents,
30+
headers, and footers.</li>
31+
<li>Formatting: Text levels, paragraph levels, bullets and numbering, table levels, page settings, and styles.</li>
32+
<li>Editing operations: Undo, redo, cut, copy, and paste.</li>
33+
<li>Find and replace text within the document.</li>
34+
<li>Interactions through touch, mouse, and keyboard.</li>
35+
</ul>
36+
<p style='display: block'> More information about the document editor features can be found in this
37+
<a target=""_blank"" href=""https://ej2.syncfusion.com/aspnet-core-razor-components/documentation/"">documentation section.</a>
38+
</p>"
39+
};
3940
}
4041
@*End:Hidden*@
4142

@@ -136,24 +137,27 @@
136137
</style>
137138

138139
@functions{
139-
140+
140141
private async void onCreate(object args)
141142
{
142-
await JSRuntime.Current.InvokeAsync<bool>
143+
await JsRuntime.InvokeAsync<bool>
143144
("AfterRender","Getting Started");
144145
}
145146

146147
private async void onExport(object args)
147148
{
148-
await JSRuntime.Current.InvokeAsync<bool>("OnExportClick",args);
149-
}
149+
await JsRuntime.InvokeAsync<bool>
150+
("OnExportClick",args);
151+
}
150152

151-
private async void onDocxExport(object args){
152-
await JSRuntime.Current.InvokeAsync<bool>("OnDocxExport");
153-
}
154-
private async void onPrint(object args)
155-
{
156-
await JSRuntime.Current.InvokeAsync<bool>("Print");
157-
}
153+
private async void onDocxExport(object args){
154+
await JsRuntime.InvokeAsync<bool>
155+
("OnDocxExport");
156+
}
157+
private async void onPrint(object args)
158+
{
159+
await JsRuntime.InvokeAsync<bool>
160+
("Print");
161+
}
158162

159163
}

0 commit comments

Comments
 (0)