Skip to content

Commit 9b4e0ba

Browse files
committed
bug(EJ2-0000): Button sample level issue fixed
1 parent fb6afd8 commit 9b4e0ba

File tree

10 files changed

+521
-499
lines changed

10 files changed

+521
-499
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
<div class="row">
4040
<p class="h5">Default</p>
4141
<div id="icon" class="e-btn-group">
42-
<EjsButton id='watch' IconCss='bg-icons e-btngrp-watch'></EjsButton>
43-
<EjsButton id='star' IconCss='bg-icons e-btngrp-star'></EjsButton>
44-
<EjsButton id='download' IconCss='bg-icons e-btngrp-download'></EjsButton>
42+
<EjsButton ID='watch' IconCss='bg-icons e-btngrp-watch'></EjsButton>
43+
<EjsButton ID='star' IconCss='bg-icons e-btngrp-star'></EjsButton>
44+
<EjsButton ID='download' IconCss='bg-icons e-btngrp-download'></EjsButton>
4545
</div>
4646
</div>
4747
<div class="row">

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

Lines changed: 169 additions & 158 deletions
Large diffs are not rendered by default.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,16 @@
4747
<div id="button-control">
4848
<div class="row">
4949
<div class="col-xs-12 col-sm-12 col-lg-6 col-md-6">
50-
<EjsDropDownButton id="iconbtn" Items="@items" IconCss="e-ddb-icons e-profile"></EjsDropDownButton>
50+
<EjsDropDownButton ID="iconbtn" Items="@items" IconCss="e-ddb-icons e-profile"></EjsDropDownButton>
5151
</div>
5252
<div class="col-xs-12 col-sm-12 col-lg-6 col-md-6">
53-
<EjsDropDownButton id="textbtn" Content="Profile" Items="@items"></EjsDropDownButton>
53+
<EjsDropDownButton ID="textbtn" Content="Profile" Items="@items"></EjsDropDownButton>
5454
</div>
5555
<div class="col-xs-12 col-sm-12 col-lg-6 col-md-6">
56-
<EjsDropDownButton id="icontextbtn" Content="Profile" Items="@items" IconCss="e-ddb-icons e-profile"></EjsDropDownButton>
56+
<EjsDropDownButton ID="icontextbtn" Content="Profile" Items="@items" IconCss="e-ddb-icons e-profile"></EjsDropDownButton>
5757
</div>
5858
<div class="col-xs-12 col-sm-12 col-lg-6 col-md-6">
59-
<EjsDropDownButton id="custombtn" Content="Profile" Items="@items" CssClass="e-caret-hide"></EjsDropDownButton>
59+
<EjsDropDownButton ID="custombtn" Content="Profile" Items="@items" CssClass="e-caret-hide"></EjsDropDownButton>
6060
</div>
6161
</div>
6262
</div>

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

Lines changed: 205 additions & 207 deletions
Large diffs are not rendered by default.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@
3939
<div class="radio-control">
4040
<h4 class="row">Select a payment method</h4>
4141
<div class="row">
42-
<EjsRadioButton id="radio1" Label="Credit/Debit Card" Name="payment" Value="credit/debit" Checked="true"></EjsRadioButton>
42+
<EjsRadioButton ID="radio1" Label="Credit/Debit Card" Name="payment" Value="credit/debit" Checked="true"></EjsRadioButton>
4343
</div>
4444
<div class="row">
45-
<EjsRadioButton id="radio2" Label="Net Banking" Name="payment" Value="netbanking"></EjsRadioButton>
45+
<EjsRadioButton ID="radio2" Label="Net Banking" Name="payment" Value="netbanking"></EjsRadioButton>
4646
</div>
4747
<div class="row">
48-
<EjsRadioButton id="radio3" Label="Cash on Delivery" Name="payment" Value="cashondelivery"></EjsRadioButton>
48+
<EjsRadioButton ID="radio3" Label="Cash on Delivery" Name="payment" Value="cashondelivery"></EjsRadioButton>
4949
</div>
5050
<div class="row">
51-
<EjsRadioButton id="radio4" Label="Other Wallets" Name="payment" Value="others"></EjsRadioButton>
51+
<EjsRadioButton ID="radio4" Label="Other Wallets" Name="payment" Value="others"></EjsRadioButton>
5252
</div>
5353
</div>
5454
</div>

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@
4040
<div id="button-control">
4141
<div class="row">
4242
<div class="col-xs-12 col-sm-6 col-lg-3 col-md-3">
43-
<EjsSplitButton id="iconsplitbtn" Items="@items" IconCss="e-btn-icons e-paste"></EjsSplitButton>
43+
<EjsSplitButton ID="iconsplitbtn" Items="@items" IconCss="e-btn-icons e-paste"></EjsSplitButton>
4444
</div>
4545
<div class="col-xs-12 col-sm-6 col-lg-3 col-md-3">
46-
<EjsSplitButton id="textsplitbtn" Items="@items" Content="Paste"></EjsSplitButton>
46+
<EjsSplitButton ID="textsplitbtn" Items="@items" Content="Paste"></EjsSplitButton>
4747
</div>
4848
<div class="col-xs-12 col-sm-6 col-lg-3 col-md-3">
49-
<EjsSplitButton id="icontextsplitbtn" Items="@items" Content="Paste" IconCss="e-btn-icons e-paste"></EjsSplitButton>
49+
<EjsSplitButton ID="icontextsplitbtn" Items="@items" Content="Paste" IconCss="e-btn-icons e-paste"></EjsSplitButton>
5050
</div>
5151
<div class="col-xs-12 col-sm-6 col-lg-3 col-md-3">
52-
<EjsSplitButton id="disabledsplitbtn" Items="@items" Content="Paste" IconCss="e-btn-icons e-paste"></EjsSplitButton>
52+
<EjsSplitButton ID="disabledsplitbtn" Items="@items" Content="Paste" IconCss="e-btn-icons e-paste"></EjsSplitButton>
5353
</div>
5454
</div>
5555
</div>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@
4949
</div>
5050
<div>
5151
<label for="checked" style="padding: 10px 70px 10px 0"> USB Tethering </label>
52-
<EjsSwitch id="checked" Checked="true"></EjsSwitch>
52+
<EjsSwitch ID="checked" Checked="true"></EjsSwitch>
5353
</div>
5454
<div>
5555
<label for="unchecked" style="padding: 10px 24px 10px 0"> Portable Wi-Fi hotspot </label>
56-
<EjsSwitch id="unchecked"></EjsSwitch>
56+
<EjsSwitch ID="unchecked"></EjsSwitch>
5757
</div>
5858
<div>
5959
<label for='disabled' class="e-disabled" style="padding: 10px 40px 10px 0"> Bluetooth Tethering </label>
60-
<EjsSwitch id="disabled" Disabled="true"></EjsSwitch>
60+
<EjsSwitch ID="disabled" Disabled="true"></EjsSwitch>
6161
</div>
6262
</div>
6363
</div>
Lines changed: 72 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,72 @@
1-
@page "/QueryBuilder/DefaultFunctionalities"
2-
3-
@using Syncfusion.EJ2.RazorComponents.QueryBuilder
4-
5-
@*Hidden:Lines*@
6-
@using ej2_blazor_samples
7-
@{
8-
SampleBrowser.CurrentSampleName = SampleBrowser.Config.QueryBuilder[0].Name;
9-
SampleBrowser.CurrentControlName = "QueryBuilder";
10-
SampleBrowser.CurrentControlCategory = "Forms";
11-
SampleBrowser.CurrentControl = SampleBrowser.Config.QueryBuilder;
12-
SampleBrowser.ActionDescription = new string[] {
13-
@"This sample demonstrates the default functionalities of the Query Builder component. Click the plus button to add a group or conditions."
14-
};
15-
SampleBrowser.Description = new string[] {
16-
@"The Query Builder component is used to create or edit filters. You can edit filters by changing the fields.",
17-
@"In mobile mode, the component is shown vertically.",
18-
@"More information about Query Builder can be found in this
19-
<a target=""_blank"" href=""http://ej2.syncfusion.com/aspnetcore/documentation/query-builder/getting-started"">
20-
documentation section
21-
</a>."
22-
};
23-
}
24-
@*End:Hidden*@
25-
26-
<div class="col-lg-12 control-section">
27-
<EjsQueryBuilder ID="querybuilder" Width="70%" Rule="@rule" DataSource="@dataSource">
28-
<QueryBuilderColumns>
29-
<QueryBuilderColumn Field="EmployeeID" Label="Employee ID" Type="number"></QueryBuilderColumn>
30-
<QueryBuilderColumn Field="FirstName" Label="First Name" Type="string"></QueryBuilderColumn>
31-
<QueryBuilderColumn Field="TitleOfCourtesy" Label="Title Of Courtesy" Type="boolean" Values=@values></QueryBuilderColumn>
32-
<QueryBuilderColumn field="Title" label="Title" type="string"></QueryBuilderColumn>
33-
<QueryBuilderColumn field="HireDate" label="Hire Date" type="date" format="dd/MM/yyyy"></QueryBuilderColumn>
34-
<QueryBuilderColumn field="Country" label="Country" type="string"></QueryBuilderColumn>
35-
<QueryBuilderColumn field="City" label="City" type="string"></QueryBuilderColumn>
36-
</QueryBuilderColumns>
37-
</EjsQueryBuilder>
38-
</div>
39-
<style>
40-
.e-query-builder {
41-
margin: 0 auto;
42-
}
43-
</style>
44-
45-
@code{
46-
47-
public List<EmployeeView> dataSource = EmployeeView.GetAllRecords();
48-
QueryBuilderRule rule = new QueryBuilderRule()
49-
{
50-
Condition = "and",
51-
Rules = new List<QueryBuilderRule>()
52-
{
53-
new QueryBuilderRule { Label="Employee ID", Field="EmployeeID", Type="number", Operator="equal", Value = 1 },
54-
new QueryBuilderRule { Label="Title", Field="Title", Type="string", Operator="equal", Value = "Sales Manager" }
55-
}
56-
};
57-
58-
List<string> values = new List<string> { "Mr.", "Mrs." };
59-
}
1+
@page "/QueryBuilder/DefaultFunctionalities"
2+
3+
@using Syncfusion.EJ2.RazorComponents.QueryBuilder
4+
5+
@*Hidden:Lines*@
6+
@using ej2_blazor_samples
7+
@using ej2_blazor_griddata
8+
@{
9+
SampleBrowser.CurrentSampleName = SampleBrowser.Config.QueryBuilder[0].Name;
10+
SampleBrowser.CurrentControlName = "QueryBuilder";
11+
SampleBrowser.CurrentControlCategory = "Forms";
12+
SampleBrowser.CurrentControl = SampleBrowser.Config.QueryBuilder;
13+
SampleBrowser.ActionDescription = new string[] {
14+
@"This sample demonstrates the default functionalities of the Query Builder component. Click the plus button to add a group or conditions."
15+
};
16+
SampleBrowser.Description = new string[] {
17+
@"The Query Builder component is used to create or edit filters. You can edit filters by changing the fields.",
18+
@"In mobile mode, the component is shown vertically.",
19+
@"More information about Query Builder can be found in this
20+
<a target=""_blank"" href=""http://ej2.syncfusion.com/aspnetcore/documentation/query-builder/getting-started"">
21+
documentation section
22+
</a>."
23+
};
24+
}
25+
@*End:Hidden*@
26+
27+
<div class="col-lg-12 control-section">
28+
<EjsQueryBuilder ID="querybuilder" Width="70%" Rule="@rule" DataSource="@dataSource">
29+
<QueryBuilderColumns>
30+
<QueryBuilderColumn Field="CustomerId" Label="CustomerId" Type="number"></QueryBuilderColumn>
31+
<QueryBuilderColumn Field="EmployeeId" Label="EmployeeId" Type="string"></QueryBuilderColumn>
32+
<QueryBuilderColumn Field="Verified" Label="Verified" Type="boolean" Values=@values></QueryBuilderColumn>
33+
<QueryBuilderColumn Field="ShipName" Label="ShipName" Type="string"></QueryBuilderColumn>
34+
<QueryBuilderColumn Field="OrderDate" Label="OrderDate" Type="date" Format="dd/MM/yyyy"></QueryBuilderColumn>
35+
<QueryBuilderColumn Field="ShipCountry" Label="ShipCountry" Type="string"></QueryBuilderColumn>
36+
<QueryBuilderColumn Field="ShipAddress" Label="ShipAddress" Type="string"></QueryBuilderColumn>
37+
</QueryBuilderColumns>
38+
</EjsQueryBuilder>
39+
</div>
40+
<style>
41+
42+
.e-query-builder {
43+
margin: 0 auto;
44+
}
45+
</style>
46+
47+
@code{
48+
49+
50+
QueryBuilderRule rule = new QueryBuilderRule()
51+
{
52+
Condition = "and",
53+
Rules = new List<QueryBuilderRule>
54+
()
55+
{
56+
new QueryBuilderRule { Label="CustomerId", Field="CustomerId", Type="number", Operator="equal", Value = 1001 },
57+
new QueryBuilderRule { Label="EmployeeId", Field="EmployeeId", Type="string", Operator="equal", Value = "FLKIN" }
58+
}
59+
};
60+
61+
public List<string>
62+
values = new List<string>
63+
{ "Mr.", "Mrs." };
64+
65+
public List<Orders>
66+
dataSource { get; set; }
67+
68+
protected override void OnInit()
69+
{
70+
dataSource = Orders.GetAllRecords();
71+
}
72+
}

ej2-blazor-samples/Pages/Navigations/ContextMenu/DefaultFunctionalities.razor

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -177,20 +177,20 @@
177177
</style>
178178

179179
@code{
180-
public List<object> menuItems { get; set; } = new List<object>
181-
{
182-
new { text="Cut", iconCss="e-cm-icons e-cut" },
183-
new { text="Copy", iconCss="e-cm-icons e-copy" },
184-
new {
185-
text ="Paste", iconCss="e-cm-icons e-paste",
186-
items = new List<object>
187-
{
188-
new { text = "Paste Text", iconCss = "e-cm-icons e-pastetext" },
189-
new { text = "Paste Special", iconCss = "e-cm-icons e-pastespecial" }
190-
}
191-
},
192-
new { separator= true},
193-
new { text = "Link", iconCss = "e-cm-icons e-link"},
194-
new { text = "New Comment", iconCss = "e-cm-icons e-comment"}
195-
};
196-
}
180+
public List<MenuItem> menuItems { get; set; } = new List<MenuItem>
181+
{
182+
new MenuItem { Text="Cut", IconCss="e-cm-icons e-cut" },
183+
new MenuItem { Text="Copy", IconCss="e-cm-icons e-copy" },
184+
new MenuItem {
185+
Text ="Paste", IconCss="e-cm-icons e-paste",
186+
Items = new List<MenuItem>
187+
{
188+
new MenuItem { Text = "Paste Text", IconCss = "e-cm-icons e-pastetext" },
189+
new MenuItem { Text = "Paste Special", IconCss = "e-cm-icons e-pastespecial" }
190+
}
191+
},
192+
new MenuItem { Separator= true},
193+
new MenuItem { Text = "Link", IconCss = "e-cm-icons e-link"},
194+
new MenuItem { Text = "New Comment", IconCss = "e-cm-icons e-comment"}
195+
};
196+
}

ej2-blazor-samples/Pages/Navigations/MenuBar/DefaultFunctionalities.razor

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -69,67 +69,67 @@
6969
</style>
7070

7171
@code{
72-
List<object> menuItems = new List<object>{
73-
new
72+
List<MenuItem> menuItems = new List<MenuItem>{
73+
new MenuItem
7474
{
75-
text = "File",
76-
iconCss = "em-icons e-file",
77-
items = new List<object>
75+
Text = "File",
76+
IconCss = "em-icons e-file",
77+
Items = new List<MenuItem>
7878
{
79-
new { text= "Open", iconCss= "em-icons e-open" },
80-
new { text= "Save", iconCss= "em-icons e-save" },
81-
new { separator= true },
82-
new { text= "Exit" }
79+
new MenuItem { Text= "Open", IconCss= "em-icons e-open" },
80+
new MenuItem { Text= "Save", IconCss= "em-icons e-save" },
81+
new MenuItem { Separator= true },
82+
new MenuItem { Text= "Exit" }
8383
}
8484
},
8585
new
86-
{
87-
text = "Edit",
88-
iconCss = "em-icons e-edit",
89-
items = new List<object>
86+
MenuItem {
87+
Text = "Edit",
88+
IconCss = "em-icons e-edit",
89+
Items = new List<MenuItem>
9090
{
91-
new { text= "Cut", iconCss= "em-icons e-cut" },
92-
new { text= "Copy", iconCss= "em-icons e-copy" },
93-
new { text= "Paste", iconCss= "em-icons e-paste" }
91+
new MenuItem { Text= "Cut", IconCss= "em-icons e-cut" },
92+
new MenuItem { Text= "Copy", IconCss= "em-icons e-copy" },
93+
new MenuItem { Text= "Paste", IconCss= "em-icons e-paste" }
9494
}
9595
},
96-
new
96+
new MenuItem
9797
{
98-
text = "View",
99-
items = new List<object>
98+
Text = "View",
99+
Items = new List<MenuItem>
100100
{
101-
new {
102-
text = "Toolbars",
103-
items = new List<object>()
101+
new MenuItem {
102+
Text = "Toolbars",
103+
Items = new List<MenuItem>()
104104
{
105-
new { text= "Menu Bar" },
106-
new { text= "Bookmarks Toolbar" },
107-
new { text= "Customize" }
105+
new MenuItem { Text= "Menu Bar" },
106+
new MenuItem { Text= "Bookmarks Toolbar" },
107+
new MenuItem { Text= "Customize" }
108108
}
109109
},
110-
new {
111-
text = "Zoom",
112-
items = new List<object>()
110+
new MenuItem {
111+
Text = "Zoom",
112+
Items = new List<MenuItem>()
113113
{
114-
new { text= "Zoom In" },
115-
new { text= "Zoom Out" },
116-
new { text= "Reset" },
114+
new MenuItem { Text= "Zoom In" },
115+
new MenuItem { Text= "Zoom Out" },
116+
new MenuItem { Text= "Reset" },
117117
}
118118
},
119-
new { text = "Full Screen" }
119+
new MenuItem { Text = "Full Screen" }
120120
}
121121
},
122-
new
122+
new MenuItem
123123
{
124-
text = "Tools",
125-
items = new List<object>()
124+
Text = "Tools",
125+
Items = new List<MenuItem>()
126126
{
127-
new { text= "Spelling & Grammar" },
128-
new { text= "Customize" },
129-
new { separator= true },
130-
new { text= "Options" }
127+
new MenuItem { Text= "Spelling & Grammar" },
128+
new MenuItem { Text= "Customize" },
129+
new MenuItem { Separator= true },
130+
new MenuItem { Text= "Options" }
131131
}
132132
},
133-
new { text = "Help" }
133+
new MenuItem { Text = "Help" }
134134
};
135135
}

0 commit comments

Comments
 (0)