Skip to content

Commit 423a3eb

Browse files
author
ashokkumar.balasubramanian
committed
Update the showcase sample
1 parent 2fadf9f commit 423a3eb

File tree

7 files changed

+2836
-256
lines changed

7 files changed

+2836
-256
lines changed

Outlook_Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<ItemGroup>
1010
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.3" />
1111
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.0.1" />
12-
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="19.2.0.44" />
12+
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="*" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

Views/Home/Home.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
}
55

66
@{
7-
var replyTemplate = "<button id='replyAllList'>Reply All</button";
7+
var replyTemplate = "<input type='text' tabindex='1' id='replyAllList' />";
88
var movetoTemplate = "<input type='text' tabindex='1' id='moveToList' />";
99
var categoryTemplate = "<input type='text' tabindex='1' id='categoryList' />";
1010
var moreTemplate = "<input type='tex' tabindex='1' id='moreList' />";

config.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"deploy": ["deploy/**"],
3-
"base": "deploy",
4-
"isShowCase": true
2+
"deploy": [ "deploy/**" ],
3+
"base": "deploy",
4+
"isShowCase": true,
5+
"appName": "webmail"
56
}

wwwroot/content/styles.css

Lines changed: 2807 additions & 237 deletions
Large diffs are not rendered by default.

wwwroot/scripts/ej2.min.js

Lines changed: 1 addition & 2 deletions
Large diffs are not rendered by default.

wwwroot/scripts/ej2.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wwwroot/scripts/home.js

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var dlgDiscardNew;
88
var dlgNewWindow;
99
var dlgReplyAllWindow;
1010
var dlgFavorite;
11-
var splitButton;
11+
var ddlReplyAll;
1212
var dlgDelete;
1313
var dropdownSelect = false;
1414
var acrdnObj = new ej.navigations.Accordion();
@@ -134,13 +134,23 @@ function renderReplyAllList() {
134134
var themeList = [
135135
{ text: 'Reply' }, { text: 'Reply All' }, { text: 'Forward' }
136136
];
137-
splitButton = new ej.splitbuttons.SplitButton({
138-
items: themeList,
139-
content: 'Reply All',
140-
select: replyAllSelect,
141-
iconCss: "e-btn-icon ej-icon-Reply-All tb-icons e-icons tb-icon-rply-all"
137+
ddlReplyAll = new ej.dropdowns.DropDownList({
138+
dataSource: themeList,
139+
fields: { text: 'text' },
140+
valueTemplate: '<div>' +
141+
'<div style="float:left;margin-top: 1px;">' +
142+
'<span style="font-weight:bold;" class="e-btn-icon ej-icon-Reply-All tb-icons e-icons tb-icon-rply-all">' +
143+
'</span>' +
144+
'</div>' +
145+
'<div class="tb-dropdowns" style="float:left" > Reply All </div>' +
146+
'<div>',
147+
popupHeight: '150px',
148+
popupWidth: '150px',
149+
width: '115px',
150+
change: replyAllSelect,
151+
value: 'Reply All'
142152
});
143-
splitButton.appendTo('#replyAllList');
153+
ddlReplyAll.appendTo('#replyAllList');
144154
}
145155
function renderCategoryList() {
146156
var themeList = [
@@ -200,8 +210,8 @@ function renderMoreListMobile() {
200210
dropDownListObj1.select = moreItemSelect;
201211
}
202212
function replyAllSelect(args) {
203-
if (args.item.text) {
204-
showNewMailPopup(args.item.text);
213+
if (args.itemData.text) {
214+
showNewMailPopup(args.itemData.text);
205215
}
206216
dropdownSelect = true;
207217
}
@@ -1114,8 +1124,8 @@ function documentClick(evt) {
11141124
else if (!dropdownSelectRP && dlgReplyAllWindow.visible && target.innerText === ddlLastRplyValueRP) {
11151125
showMailDialogRP(ddlLastRplyValueRP);
11161126
}
1117-
else if (!dropdownSelect && !dlgReplyAllWindow.visible && target.innerText === splitButton.content) {
1118-
showNewMailPopup(splitButton.content);
1127+
else if (!dropdownSelect && !dlgReplyAllWindow.visible && target.innerText === ddlReplyAll.value) {
1128+
showNewMailPopup(ddlReplyAll.value);
11191129
}
11201130
else {
11211131
if (target.tagName === 'SPAN' || (target.children && target.children.length > 0)) {

0 commit comments

Comments
 (0)