Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions ej2-blazor-samples/Pages/Buttons/Button/DropDownButton.razor
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
@page "/Buttons/DropDownButton"

@using Syncfusion.EJ2.RazorComponents.Buttons
@using Syncfusion.EJ2.RazorComponents.SplitButtons


@*Hidden:Lines*@
@using ej2_blazor_samples
@{
SampleBrowser.CurrentSampleName = SampleBrowser.Config.Button[4].Name;
SampleBrowser.CurrentControlName = "Button";
SampleBrowser.CurrentControlCategory = "Button";
SampleBrowser.CurrentControl = SampleBrowser.Config.Button;
SampleBrowser.ActionDescription = new string[] {
SampleBrowser.CurrentSampleName = SampleBrowser.Config.Button[4].Name;
SampleBrowser.CurrentControlName = "Button";
SampleBrowser.CurrentControlCategory = "Button";
SampleBrowser.CurrentControl = SampleBrowser.Config.Button;
SampleBrowser.ActionDescription = new string[] {
@"<p>This sample demonstrates the default functionalities of the DropDownButton. Clicking DropDownButton will display popup with list of action items.</p>"
};
SampleBrowser.Description = new string[]{
SampleBrowser.Description = new string[]{
@"<p>
The DropDownButton component is used to toggle contextual overlays for displaying list of action items. It can contain both text and images.
</p>
Expand Down Expand Up @@ -159,10 +160,10 @@
@functions{

public List<object> items { get; set; } = new List<object>
{
{
new { text = "Dashboard", iconCss = "e-ddb-icons e-dashboard" },
new { text = "Notifications", iconCss = "e-ddb-icons e-notifications" },
new { text = "User Settings", iconCss = "e-ddb-icons e-settings" },
new { text = "Log Out", iconCss = "e-ddb-icons e-logout" }
};
}
}
2 changes: 2 additions & 0 deletions ej2-blazor-samples/Pages/Calendars/Calendar/DateRange.razor
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@page "/Calendar/DateRange"

@using Syncfusion.EJ2.RazorComponents.Calendars

@*Hidden:Lines*@
@using ej2_blazor_samples
@{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@page "/Calendar/DefaultFunctionalities"

@using Syncfusion.EJ2.RazorComponents.Calendars

@*Hidden:Lines*@
@using ej2_blazor_samples
@{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@page "/Calendar/MultiSelection"

@using Syncfusion.EJ2.RazorComponents.Calendars

@*Hidden:Lines*@
@using ej2_blazor_samples
@{
Expand All @@ -8,10 +10,10 @@
SampleBrowser.CurrentControlCategory = "Calendar";
SampleBrowser.CurrentControl = SampleBrowser.Config.Calendar;
SampleBrowser.ActionDescription = new string[] {

};
SampleBrowser.Description = new string[]{

};
}
@*End:Hidden*@
Expand All @@ -34,6 +36,6 @@
</style>

@functions {
public bool multiSelection {get;set;} = true;
public bool multiSelection { get; set; } = true;
public DateTime[] multiValue = new DateTime[] { new DateTime(DateTime.Now.Year, DateTime.Now.Month, 10), new DateTime(DateTime.Now.Year, DateTime.Now.Month, 15), new DateTime(DateTime.Now.Year, DateTime.Now.Month, 25) };
}
8 changes: 5 additions & 3 deletions ej2-blazor-samples/Pages/Calendars/DatePicker/DateRange.razor
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@page "/DatePicker/DateRange"

@using Syncfusion.EJ2.RazorComponents.Calendars

@*Hidden:Lines*@
@using ej2_blazor_samples
@{
Expand Down Expand Up @@ -42,7 +44,7 @@
</style>

@functions{
public DateTime value {get;set;} = new DateTime(DateTime.Now.Year,DateTime.Now.Month,10);
public DateTime minDate {get;set;} = new DateTime(DateTime.Now.Year,DateTime.Now.Month,05);
public DateTime maxDate {get;set;} = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 27);
public DateTime value { get; set; } = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 10);
public DateTime minDate { get; set; } = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 05);
public DateTime maxDate { get; set; } = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 27);
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@page "/DatePicker/DefaultFunctionalities"

@using Syncfusion.EJ2.RazorComponents.Calendars

@*Hidden:Lines*@
@using ej2_blazor_samples
@{
Expand Down Expand Up @@ -27,7 +29,7 @@
<div class="control-section">
<div id="wrapper" class="datepicker-section">
<div id="datepicker-control">
<EjsDatePicker id="datepicker" placeholder="Choose a Date"></EjsDatePicker>
<EjsDatePicker id="datepicker" placeholder="Choose a Date"></EjsDatePicker>
</div>
</div>
</div>
Expand Down
4 changes: 3 additions & 1 deletion ej2-blazor-samples/Pages/Calendars/DatePicker/Format.razor
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@page "/DatePicker/Format"

@using Syncfusion.EJ2.RazorComponents.Calendars

@*Hidden:Lines*@
@using ej2_blazor_samples
@{
Expand Down Expand Up @@ -45,5 +47,5 @@
</style>

@functions{
public DateTime value {get;set;} = new DateTime(DateTime.Now.Year,DateTime.Now.Month,10);
public DateTime value { get; set; } = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 10);
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@page "/DateRangePicker/DateRange"

@using Syncfusion.EJ2.RazorComponents.Calendars

@*Hidden:Lines*@
@using ej2_blazor_samples
@{
Expand Down Expand Up @@ -29,7 +31,7 @@

<div class="control-section">
<div id="wrapper">
<EjsDateRangePicker id="daterangepicker" placeHolder="Choose a Range" min="minDate" max="maxDate"></EjsDateRangePicker>
<EjsDateRangePicker id="daterangepicker" placeHolder="Choose a Range" min="minDate" max="maxDate"></EjsDateRangePicker>
</div>
</div>

Expand All @@ -42,6 +44,6 @@
</style>

@functions{
public DateTime minDate {get;set;} = new DateTime(2017, 01, 05);
public DateTime maxDate {get;set;} = new DateTime(2017, 12, 20);
public DateTime minDate { get; set; } = new DateTime(2017, 01, 05);
public DateTime maxDate { get; set; } = new DateTime(2017, 12, 20);
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@page "/DateRangePicker/DefaultFunctionalities"

@using Syncfusion.EJ2.RazorComponents.Calendars

@*Hidden:Lines*@
@using ej2_blazor_samples
@{
Expand All @@ -25,11 +27,11 @@
@*End:Hidden*@

<div class="control-section">
<div id="wrapper">
<div class="wrap">
<EjsDateRangePicker id="daterangepicker" placeHolder="Choose a Range"></EjsDateRangePicker>
</div>
<div id="wrapper">
<div class="wrap">
<EjsDateRangePicker id="daterangepicker" placeHolder="Choose a Range"></EjsDateRangePicker>
</div>
</div>
</div>

<style>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@page "/DateRangePicker/Format"

@using Syncfusion.EJ2.RazorComponents.Calendars
@using System
@using Syncfusion.EJ2.RazorComponents.Calendars;
@using System;

@*Hidden:Lines*@
@using ej2_blazor_samples
Expand Down Expand Up @@ -46,6 +46,6 @@
</style>

@functions{
public DateTime start {get;set;} = DateTime.Now;
public DateTime end {get;set;} = DateTime.Now.AddDays(20);
public DateTime start { get; set; } = DateTime.Now;
public DateTime end { get; set; } = DateTime.Now.AddDays(20);
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@page "/DateTimePicker/DateTimeRange"

@using Syncfusion.EJ2.RazorComponents.Calendars

@*Hidden:Lines*@
@using ej2_blazor_samples
@{
Expand Down Expand Up @@ -42,7 +44,7 @@
</style>

@functions{
public DateTime value {get;set;} = new DateTime(DateTime.Now.Year,DateTime.Now.Month,10);
public DateTime minDate {get;set;} = new DateTime(DateTime.Now.Year,DateTime.Now.Month,05);
public DateTime maxDate {get;set;} = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 27);
public DateTime value { get; set; } = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 10);
public DateTime minDate { get; set; } = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 05);
public DateTime maxDate { get; set; } = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 27);
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@page "/DateTimePicker/DefaultFunctionalities"

@using Syncfusion.EJ2.RazorComponents.Calendars

@*Hidden:Lines*@
@using ej2_blazor_samples
@{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@page "/DateTimePicker/Format"

@using Syncfusion.EJ2.RazorComponents.Calendars

@*Hidden:Lines*@
@using ej2_blazor_samples
@{
Expand Down Expand Up @@ -45,5 +47,5 @@
</style>

@functions{
public DateTime value {get;set;} = DateTime.Now;
public DateTime value { get; set; } = DateTime.Now;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@page "/AutoComplete/DefaultFunctionalities"

@using Syncfusion.EJ2.RazorComponents.DropDowns

@*Hidden:Lines*@
@using ej2_blazor_samples
@{
Expand Down Expand Up @@ -41,7 +43,7 @@
</style>

@functions{
List<object> games = new List<object> {
List<object> games = new List<object> {
new { id= "Game1", text= "American Football" },
new { id= "Game2", text= "Badminton" },
new { id= "Game3", text= "Basketball" },
Expand All @@ -53,4 +55,4 @@
new { id= "Game9", text= "Snooker" },
new { id= "Game10", text= "Tennis"},
};
}
}
39 changes: 23 additions & 16 deletions ej2-blazor-samples/Pages/DropDowns/ComboBox/DataBinding.razor
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@page "/ComboBox/DataBinding"

@using Syncfusion.EJ2.RazorComponents.DropDowns

@*Hidden:Lines*@
@using ej2_blazor_samples
@{
Expand Down Expand Up @@ -68,8 +70,8 @@
</style>

@functions{
List<object> games = new List<object>
{
List<object> games = new List<object>
{
new { id= "Game1", text= "American Football" },
new { id= "Game2", text= "Badminton" },
new { id= "Game3", text= "Basketball" },
Expand All @@ -82,21 +84,26 @@
new { id= "Game10", text= "Tennis"},
};

public object comboBoxFields = new {
text="text", value="id"
};
public object comboBoxFields = new
{
text = "text",
value = "id"
};

public object remoteData = new {
Url ="https://ej2services.syncfusion.com/production/web-services/api/Employees",
CrossDomain = "true",
Adaptor = "WebApiAdaptor"
};
public object remoteData = new
{
Url = "https://ej2services.syncfusion.com/production/web-services/api/Employees",
CrossDomain = "true",
Adaptor = "WebApiAdaptor"
};

public object remoteComboBoxFields = new {
Text="FirstName", Value="EmployeeID"
};
public object remoteComboBoxFields = new
{
Text = "FirstName",
Value = "EmployeeID"
};

public string dataQuery { get; set;} = "new ej.data.Query().select(['FirstName', 'EmployeeID']).take(10).requiresCount()";
public string dataQuery { get; set; } = "new ej.data.Query().select(['FirstName', 'EmployeeID']).take(10).requiresCount()";

public string sort { get; set; } = "Ascending";
}
public string sort { get; set; } = "Ascending";
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@page "/ComboBox/DefaultFunctionalities"

@using Syncfusion.EJ2.RazorComponents.DropDowns

@*Hidden:Lines*@
@using ej2_blazor_samples
@{
Expand All @@ -24,7 +26,7 @@
@*End:Hidden*@

<div class="col-lg-12 control-section">
<div class="control_wrapper" >
<div class="control_wrapper">
<EjsComboBox ID="games" PopupHeight="230px" fields="@comboBoxFields" index="2" placeholder="Select a game" DataSource="@games"></EjsComboBox>
</div>
</div>
Expand All @@ -39,7 +41,7 @@

@functions{
List<object> games = new List<object>
{
{
new { id= "Game1", text= "American Football" },
new { id= "Game2", text= "Badminton" },
new { id= "Game3", text= "Basketball" },
Expand All @@ -52,7 +54,9 @@
new { id= "Game10", text= "Tennis"},
};

public object comboBoxFields = new {
Text="Game", Value="Id"
public object comboBoxFields = new
{
Text = "Game",
Value = "Id"
};
}
14 changes: 9 additions & 5 deletions ej2-blazor-samples/Pages/DropDowns/ComboBox/Filtering.razor
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@page "/ComboBox/Filtering"

@using Syncfusion.EJ2.RazorComponents.DropDowns

@*Hidden:Lines*@
@using ej2_blazor_samples
@{
Expand Down Expand Up @@ -65,9 +67,11 @@
new { Name = "Switzerland", Code = "CH" },
new { Name = "United Kingdom", Code = "GB" },
new { Name = "United States", Code = "US" },
};
};

public object ComboBoxFieldSettings = new {
text = "Name", value = "Code"
};
}
public object ComboBoxFieldSettings = new
{
text = "Name",
value = "Code"
};
}
Loading