Skip to content

Commit 4dfa61f

Browse files
authored
Merge pull request #3315 from syncfusion-content/ES-909128-tab
909128: Changed the Tabs code snippets
2 parents e10e27b + 0b913fc commit 4dfa61f

File tree

28 files changed

+149
-149
lines changed

28 files changed

+149
-149
lines changed

ej2-asp-core-mvc/code-snippet/file-manager/file-tab/HomeController_mvc.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ public ActionResult GetImage(FileManagerDirectoryContent args)
9292
}
9393
public ActionResult Index()
9494
{
95-
List<TabTabItem> orientationItems = new List<TabTabItem>
95+
List<TabItem> orientationItems = new List<TabItem>
9696
{
97-
new TabTabItem { Header = new TabHeader { Text = "Overview" }, Content = "#overview" },
98-
new TabTabItem { Header = new TabHeader { Text = "Filemanager" }, Content = "#filemanager" }
97+
new TabItem { Header = new TabHeader { Text = "Overview" }, Content = "#overview" },
98+
new TabItem { Header = new TabHeader { Text = "Filemanager" }, Content = "#filemanager" }
9999
};
100100
ViewBag.orientationItems = orientationItems;
101101
return View();

ej2-asp-core-mvc/code-snippet/file-manager/file-tab/razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
</div>
2424
</div>
2525
@(Html.EJS().Tab("orientationTab")
26-
.Items(new List<TabTabItem> {
27-
new TabTabItem { Header = ViewBag.headerText1, Content = "#overview" },
28-
new TabTabItem { Header = ViewBag.headerText2, Content = "#filemanager" },
26+
.Items(new List<TabItem> {
27+
new TabItem { Header = ViewBag.headerText1, Content = "#overview" },
28+
new TabItem { Header = ViewBag.headerText2, Content = "#filemanager" },
2929
}).Height("320").ShowCloseButton(true).Selected("onSelect").Render()
3030
)
3131
</div>

ej2-asp-core-mvc/code-snippet/tab/animation/razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
</div>
1818
</div>
1919
<br />
20-
@Html.EJS().Tab("ej2Tab").Items(new List<TabTabItem> {
21-
new TabTabItem { Header = ViewBag.headerText0, Content = "Twitter is an online social networking service that enables users to send and read short 140-character messages called tweets. Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day." },
22-
new TabTabItem { Header = ViewBag.headerText1, Content = "Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students." },
23-
new TabTabItem { Header = ViewBag.headerText2, Content = "WhatsApp Messenger is a proprietary cross-platform instant messaging client for smartphones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion." }
20+
@Html.EJS().Tab("ej2Tab").Items(new List<TabItem> {
21+
new TabItem { Header = ViewBag.headerText0, Content = "Twitter is an online social networking service that enables users to send and read short 140-character messages called tweets. Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day." },
22+
new TabItem { Header = ViewBag.headerText1, Content = "Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students." },
23+
new TabItem { Header = ViewBag.headerText2, Content = "WhatsApp Messenger is a proprietary cross-platform instant messaging client for smartphones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion." }
2424
}).Render()
2525

2626
<script type="text/javascript">

ej2-asp-core-mvc/code-snippet/tab/collapsible/razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
</span>
2929

3030
@(Html.EJS().Tab("ej2Tab")
31-
.Items(new List<TabTabItem> {
32-
new TabTabItem { Header = ViewBag.headerTextOne, Content = @content0 },
33-
new TabTabItem { Header = ViewBag.headerTextTwo, Content = @content1 },
34-
new TabTabItem { Header = ViewBag.headerTextThree, Content = @content2 }
31+
.Items(new List<TabItem> {
32+
new TabItem { Header = ViewBag.headerTextOne, Content = @content0 },
33+
new TabItem { Header = ViewBag.headerTextTwo, Content = @content1 },
34+
new TabItem { Header = ViewBag.headerTextThree, Content = @content2 }
3535
})
3636
.CssClass("e-background")
3737
.Created("tabCreated")

ej2-asp-core-mvc/code-snippet/tab/customize/razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
@using Syncfusion.EJ2.Navigations;
22

33
@(Html.EJS().Tab("ej2Tab")
4-
.Items(new List<TabTabItem> {
5-
new TabTabItem { Header = ViewBag.headerTextOne, Content = "Andrew received his BTS commercial in 1974 and a Ph.D. in international marketing from the University of Dallas in 1981.He is fluent in French and Italian and reads German.He joined the company as a sales representative, was promoted to sales manager in January 1992 and to vice president of sales in March 1993.Andrew is a member of the Sales Management Roundtable, the Seattle Chamber of Commerce, and the Pacific Rim Importers Association." },
6-
new TabTabItem { Header = ViewBag.headerTextTwo, Content = "Margaret holds a BA in English literature from Concordia College (1958) and an MA from the American Institute of Culinary Arts (1966).She was assigned to the London office temporarily from July through November 1992." },
7-
new TabTabItem { Header = ViewBag.headerTextThree, Content = "Janet has a BS degree in chemistry from Boston College (1984).She has also completed a certificate program in food retailing management.Janet was hired as a sales associate in 1991 and promoted to sales representative in February 1992." },
4+
.Items(new List<TabItem> {
5+
new TabItem { Header = ViewBag.headerTextOne, Content = "Andrew received his BTS commercial in 1974 and a Ph.D. in international marketing from the University of Dallas in 1981.He is fluent in French and Italian and reads German.He joined the company as a sales representative, was promoted to sales manager in January 1992 and to vice president of sales in March 1993.Andrew is a member of the Sales Management Roundtable, the Seattle Chamber of Commerce, and the Pacific Rim Importers Association." },
6+
new TabItem { Header = ViewBag.headerTextTwo, Content = "Margaret holds a BA in English literature from Concordia College (1958) and an MA from the American Institute of Culinary Arts (1966).She was assigned to the London office temporarily from July through November 1992." },
7+
new TabItem { Header = ViewBag.headerTextThree, Content = "Janet has a BS degree in chemistry from Boston College (1984).She has also completed a certificate program in food retailing management.Janet was hired as a sales associate in 1991 and promoted to sales representative in February 1992." },
88
})
99
.HeightAdjustMode(HeightStyles.Auto)
1010
.OverflowMode(OverflowMode.Popup)

ej2-asp-core-mvc/code-snippet/tab/drag-and-drop/default/razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212

1313
<div id='container'>
1414
@(Html.EJS().Tab("draggableTab")
15-
.Items(new List<TabTabItem> {
16-
new TabTabItem { Header = ViewBag.headerTextOne, Content = @contentOne },
17-
new TabTabItem { Header = ViewBag.headerTextTwo, Content = @contentTwo },
18-
new TabTabItem { Header = ViewBag.headerTextThree, Content = @contentThree },
19-
new TabTabItem { Header = ViewBag.headerTextFour, Content = @contentFour }
15+
.Items(new List<TabItem> {
16+
new TabItem { Header = ViewBag.headerTextOne, Content = @contentOne },
17+
new TabItem { Header = ViewBag.headerTextTwo, Content = @contentTwo },
18+
new TabItem { Header = ViewBag.headerTextThree, Content = @contentThree },
19+
new TabItem { Header = ViewBag.headerTextFour, Content = @contentFour }
2020
})
2121
.HeightAdjustMode(HeightStyles.Auto)
2222
.DragArea("#container")

ej2-asp-core-mvc/code-snippet/tab/drag-and-drop/tab-to-tab/razor

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020

2121
<div id='container'>
2222
@(Html.EJS().Tab("firstTab")
23-
.Items(new List<TabTabItem> {
24-
new TabTabItem { Header = ViewBag.headerTextOne, Content = @contentOne },
25-
new TabTabItem { Header = ViewBag.headerTextTwo, Content = @contentTwo },
26-
new TabTabItem { Header = ViewBag.headerTextThree, Content = @contentThree },
27-
new TabTabItem { Header = ViewBag.headerTextFour, Content = @contentFour }
23+
.Items(new List<TabItem> {
24+
new TabItem { Header = ViewBag.headerTextOne, Content = @contentOne },
25+
new TabItem { Header = ViewBag.headerTextTwo, Content = @contentTwo },
26+
new TabItem { Header = ViewBag.headerTextThree, Content = @contentThree },
27+
new TabItem { Header = ViewBag.headerTextFour, Content = @contentFour }
2828
})
2929
.HeightAdjustMode(HeightStyles.Auto)
3030
.DragArea("#container")
@@ -34,11 +34,11 @@
3434
.Render()
3535
)
3636
@(Html.EJS().Tab("secondTab")
37-
.Items(new List<TabTabItem> {
38-
new TabTabItem { Header = ViewBag.headerTextFive, Content = @contentFive },
39-
new TabTabItem { Header = ViewBag.headerTextSix, Content = @contentSix },
40-
new TabTabItem { Header = ViewBag.headerTextSeven, Content = @contentSeven },
41-
new TabTabItem { Header = ViewBag.headerTextEight, Content = @contentEight }
37+
.Items(new List<TabItem> {
38+
new TabItem { Header = ViewBag.headerTextFive, Content = @contentFive },
39+
new TabItem { Header = ViewBag.headerTextSix, Content = @contentSix },
40+
new TabItem { Header = ViewBag.headerTextSeven, Content = @contentSeven },
41+
new TabItem { Header = ViewBag.headerTextEight, Content = @contentEight }
4242
})
4343
.HeightAdjustMode(HeightStyles.Auto)
4444
.DragArea("#container")

ej2-asp-core-mvc/code-snippet/tab/drag-and-drop/tab-to-treeview/razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212

1313
<div id='container'>
1414
@(Html.EJS().Tab("draggableTab")
15-
.Items(new List<TabTabItem> {
16-
new TabTabItem { Header = ViewBag.headerTextOne, Content = @contentOne },
17-
new TabTabItem { Header = ViewBag.headerTextTwo, Content = @contentTwo },
18-
new TabTabItem { Header = ViewBag.headerTextThree, Content = @contentThree },
19-
new TabTabItem { Header = ViewBag.headerTextFour, Content = @contentFour }
15+
.Items(new List<TabItem> {
16+
new TabItem { Header = ViewBag.headerTextOne, Content = @contentOne },
17+
new TabItem { Header = ViewBag.headerTextTwo, Content = @contentTwo },
18+
new TabItem { Header = ViewBag.headerTextThree, Content = @contentThree },
19+
new TabItem { Header = ViewBag.headerTextFour, Content = @contentFour }
2020
})
2121
.HeightAdjustMode(HeightStyles.Auto)
2222
.DragArea("#container")

ej2-asp-core-mvc/code-snippet/tab/drag-and-drop/treeview-to-tab/razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212

1313
<div id='container'>
1414
@(Html.EJS().Tab("draggableTab")
15-
.Items(new List<TabTabItem> {
16-
new TabTabItem { Header = ViewBag.headerTextOne, Content = @contentOne },
17-
new TabTabItem { Header = ViewBag.headerTextTwo, Content = @contentTwo },
18-
new TabTabItem { Header = ViewBag.headerTextThree, Content = @contentThree },
19-
new TabTabItem { Header = ViewBag.headerTextFour, Content = @contentFour }
15+
.Items(new List<TabItem> {
16+
new TabItem { Header = ViewBag.headerTextOne, Content = @contentOne },
17+
new TabItem { Header = ViewBag.headerTextTwo, Content = @contentTwo },
18+
new TabItem { Header = ViewBag.headerTextThree, Content = @contentThree },
19+
new TabItem { Header = ViewBag.headerTextFour, Content = @contentFour }
2020
})
2121
.HeightAdjustMode(HeightStyles.Auto)
2222
.DragArea("#container")

ej2-asp-core-mvc/code-snippet/tab/dynamic/razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
</div>
2929
</div>
3030
@(Html.EJS().Tab("ej2Tab")
31-
.Items(new List<TabTabItem> {
32-
new TabTabItem { Header = ViewBag.headerTextOne, Content = "#tab1_content" },
33-
new TabTabItem { Header = ViewBag.headerTextTwo, Content = "#form-container" }
31+
.Items(new List<TabItem> {
32+
new TabItem { Header = ViewBag.headerTextOne, Content = "#tab1_content" },
33+
new TabItem { Header = ViewBag.headerTextTwo, Content = "#form-container" }
3434
})
3535
.Created("tabCreated")
3636
.Selected("tabSelected")

0 commit comments

Comments
 (0)