Skip to content

Commit

Permalink
Merge pull request #3 from kmuthukumar23/EJ2-24192-move-github
Browse files Browse the repository at this point in the history
Updated version into v0.9.0
  • Loading branch information
Sridhar S authored Mar 20, 2019
2 parents 36256ed + 1540ee8 commit fe916f1
Show file tree
Hide file tree
Showing 28 changed files with 473 additions and 402 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/bin
/obj
/.vs
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This section guides you to use the Syncfusion ASP.NET Core Razor Components UI C
The samples requires the below requirements to run.

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

## Documentation

Expand Down
10 changes: 3 additions & 7 deletions ej2-blazor-samples/Pages/Buttons/Button/CheckBox.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@
<div class="control-section">
<div class="checkbox-control">
<div class="row">
<EjsCheckBox id="cboxChecked" Checked="true" Label="CheckBox: true" Change="@onChange"></EjsCheckBox>
<EjsCheckBox ID="cboxChecked" Checked="true" Label="CheckBox"></EjsCheckBox>
</div>
<div class="row">
<EjsCheckBox id="disabled" Disabled="true" Checked="true" Label="Checked,Disabled"></EjsCheckBox>
<EjsCheckBox ID="disabled" Disabled="true" Checked="true" Label="Checked,Disabled"></EjsCheckBox>
</div>
<div class="row">
<EjsCheckBox id="indeterminate" Indeterminate="true" Disabled="true" Label="Intermediate,Disabled"></EjsCheckBox>
<EjsCheckBox ID="indeterminate" Indeterminate="true" Disabled="true" Label="Intermediate,Disabled"></EjsCheckBox>
</div>
</div>
</div>
Expand Down Expand Up @@ -92,8 +92,4 @@

@functions{

EjsCheckBox cboxChecked;
private void onChange(ChangeEventArgs args) {
this.cboxChecked.Label = "CheckBox: " + args.Checked;
}
}
10 changes: 6 additions & 4 deletions ej2-blazor-samples/Pages/Buttons/Button/ProgressButton.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
</div>
<div class="col-xs-12 col-sm-12 col-lg-6 col-md-6">
<EjsProgressButton ID="contract" Content="Contract" EnableProgress="true" CssClass="e-success e-small" Begin="@contractBegin"
End="@contractEnd"></EjsProgressButton>
End="@contractEnd" ref="contractBtn"></EjsProgressButton>
</div>
</div>
<div class="col-xs-6 col-sm-6 col-lg-6 col-md-6">
Expand Down Expand Up @@ -182,7 +182,7 @@
</style>

@functions{
EjsProgressButton contract;
EjsProgressButton contractBtn;

object spinRight = new { position = "Right" };
object spinTop = new { position = "Top" };
Expand All @@ -195,11 +195,13 @@

private void contractBegin(ProgressEventArgs args)
{
this.contract.CssClass = "e-round";
this.contractBtn.CssClass = "e-success e-small e-round";
this.contractBtn.DataBind();
}

private void contractEnd(ProgressEventArgs args)
{
this.contract.CssClass = "";
this.contractBtn.CssClass = "e-success e-small";
this.contractBtn.DataBind();
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
@page "/DocumentEditor/BulletsAndNumbering"

@using Syncfusion.EJ2.RazorComponents.DocumentEditor
@using Syncfusion.EJ2.RazorComponents.DocumentEditor;
@using Newtonsoft.Json;
@inject HttpClient Http
@using Syncfusion.EJ2.RazorComponents.SplitButtons
@inject HttpClient Http;
@using Syncfusion.EJ2.RazorComponents.SplitButtons;
@inject IJSRuntime JsRuntime;


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

Expand Down Expand Up @@ -127,23 +128,23 @@
private string DocumentName {get;set;} ="Getting Started";
private async void onCreate(object args)
{
await JSRuntime.Current.InvokeAsync<bool>
await JsRuntime.InvokeAsync<bool>
("AfterRender","Bullets and Numbering");
}

private async void onExport(object args)
{
await JSRuntime.Current.InvokeAsync<bool>
await JsRuntime.InvokeAsync<bool>
("OnExportClick",args);
}

private async void onDocxExport(object args){
await JSRuntime.Current.InvokeAsync<bool>
await JsRuntime.InvokeAsync<bool>
("OnDocxExport");
}
private async void onPrint(object args)
{
await JSRuntime.Current.InvokeAsync<bool>
await JsRuntime.InvokeAsync<bool>
("Print");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

@using Syncfusion.EJ2.RazorComponents.DocumentEditor
@using Newtonsoft.Json;
@inject HttpClient Http
@using Syncfusion.EJ2.RazorComponents.SplitButtons
@inject HttpClient Http;
@using Syncfusion.EJ2.RazorComponents.SplitButtons;
@inject IJSRuntime JsRuntime;


@*Hidden:Lines*@
Expand All @@ -14,23 +15,23 @@
SampleBrowser.CurrentControlCategory = "DocumentEditor";
SampleBrowser.CurrentControl = SampleBrowser.Config.DocumentEditor;
SampleBrowser.ActionDescription = new string[] {
@"<p>This example demonstrates the character formatting options in DocumentEditor such as bold, italic, underline, strikethrough,
subscript, superscript, font, font size, font color, and highlight color.</p>"
};
@"<p>This example demonstrates the character formatting options in DocumentEditor such as bold, italic, underline, strikethrough,
subscript, superscript, font, font size, font color, and highlight color.</p>"
};
SampleBrowser.Description = new string[] {
@"<p>In this example, you can find character formatting features in the document editor.</p>
<ul>
<li>Bold and Italic.</li>
<li>Underline.</li>
<li>Single strike and double strikes.</li>
<li>Superscript and subscript.</li>
<li>Font and highlight colors.</li>
<li>Different fonts and sizes.</li>
</ul>
<p style='display:block'> More information about the document editor features can be found in this <a target=""_blank""
href=""https://ej2.syncfusion.com/aspnet-core-razor-components/documentation/"">documentation section.</a>
</p>"
};
@"<p>In this example, you can find character formatting features in the document editor.</p>
<ul>
<li>Bold and Italic.</li>
<li>Underline.</li>
<li>Single strike and double strikes.</li>
<li>Superscript and subscript.</li>
<li>Font and highlight colors.</li>
<li>Different fonts and sizes.</li>
</ul>
<p style='display:block'> More information about the document editor features can be found in this <a target=""_blank""
href=""https://ej2.syncfusion.com/aspnet-core-razor-components/documentation/"">documentation section.</a>
</p>"
};
}
@*End:Hidden*@

Expand All @@ -42,7 +43,7 @@
</div>
<div style="float:right" onclick="@onPrint">
<Ejsbutton id="de-print" cssClass="printIconCss" iconCss="e-de-icon-Print">Print</Ejsbutton>
</div>
</div>
</div>
<EjsDocumentEditorContainer ID="container" enableToolbar=true created="@onCreate"></EjsDocumentEditorContainer>
</div>
Expand Down Expand Up @@ -135,23 +136,23 @@
private string DocumentName {get;set;} ="Getting Started";
private async void onCreate(object args)
{
await JSRuntime.Current.InvokeAsync<bool>
await JsRuntime.InvokeAsync<bool>
("AfterRender","Character Formatting");
}

private async void onExport(object args)
{
await JSRuntime.Current.InvokeAsync<bool>
await JsRuntime.InvokeAsync<bool>
("OnExportClick",args);
}

private async void onDocxExport(object args){
await JSRuntime.Current.InvokeAsync<bool>
await JsRuntime.InvokeAsync<bool>
("OnDocxExport");
}
private async void onPrint(object args)
{
await JSRuntime.Current.InvokeAsync<bool>
await JsRuntime.InvokeAsync<bool>
("Print");
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
@page "/DocumentEditor/DefaultFunctionalities"

@using Syncfusion.EJ2.RazorComponents.DocumentEditor
@using Syncfusion.EJ2.RazorComponents.DocumentEditor;
@using Newtonsoft.Json;
@inject HttpClient Http
@using Syncfusion.EJ2.RazorComponents.SplitButtons
@inject HttpClient Http;
@using Syncfusion.EJ2.RazorComponents.SplitButtons;
@inject IJSRuntime JsRuntime;


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

Expand Down Expand Up @@ -136,24 +137,27 @@
</style>

@functions{

private async void onCreate(object args)
{
await JSRuntime.Current.InvokeAsync<bool>
await JsRuntime.InvokeAsync<bool>
("AfterRender","Getting Started");
}

private async void onExport(object args)
{
await JSRuntime.Current.InvokeAsync<bool>("OnExportClick",args);
}
await JsRuntime.InvokeAsync<bool>
("OnExportClick",args);
}

private async void onDocxExport(object args){
await JSRuntime.Current.InvokeAsync<bool>("OnDocxExport");
}
private async void onPrint(object args)
{
await JSRuntime.Current.InvokeAsync<bool>("Print");
}
private async void onDocxExport(object args){
await JsRuntime.InvokeAsync<bool>
("OnDocxExport");
}
private async void onPrint(object args)
{
await JsRuntime.InvokeAsync<bool>
("Print");
}

}
Loading

0 comments on commit fe916f1

Please sign in to comment.