|
27 | 27 |
|
28 | 28 | <div class="col-lg-12 control-section"> |
29 | 29 | <div class="e-sample-resize-container"> |
30 | | - @*<EjsTab id="defaultTab" Items="@TabItems"> |
31 | | - </EjsTab>*@ |
32 | 30 | <EjsTab ID="defaultTab"> |
| 31 | + <TabAnimationSettings> |
| 32 | + <TabAnimationPrevious Effect="SlideRightIn" Duration="600" Easing="ease"></TabAnimationPrevious> |
| 33 | + <TabAnimationNext Effect="SlideLeftIn" Duration="600" Easing="ease"></TabAnimationNext> |
| 34 | + </TabAnimationSettings> |
33 | 35 | <TabItems> |
34 | | - <TabItem Header="@header1" Content="@content1"></TabItem> |
35 | | - <TabItem Header="@header2" Content="@content2"></TabItem> |
36 | | - <TabItem Header="@header3" Content="@content3"></TabItem> |
| 36 | + <TabItem Header="@Header1" Content="@Content1"></TabItem> |
| 37 | + <TabItem Header="@Header2" Content="@Content2"></TabItem> |
| 38 | + <TabItem Header="@Header3" Content="@Content3"></TabItem> |
37 | 39 | </TabItems> |
38 | 40 | </EjsTab> |
39 | 41 | </div> |
|
75 | 77 | } |
76 | 78 | </style> |
77 | 79 |
|
78 | | -@functions{ |
| 80 | +@code{ |
79 | 81 |
|
80 | | -public object header1 = new { text = "Twitter", iconCss = "e-twitter" }; |
81 | | -public object header2 = new { text = "Facebook", iconCss = "e-facebook" }; |
82 | | -public object header3 = new { text = "Whatsapp", iconCss = "e-whatsapp" }; |
| 82 | +public object Header1 = new { text = "Twitter", iconCss = "e-twitter" }; |
| 83 | +public object Header2 = new { text = "Facebook", iconCss = "e-facebook" }; |
| 84 | +public object Header3 = new { text = "Whatsapp", iconCss = "e-whatsapp" }; |
83 | 85 |
|
84 | | -public string content1 = "witter is an online social networking service that enables users to send and read short 140-character" + |
| 86 | +public string Content1 = "witter is an online social networking service that enables users to send and read short 140-character" + |
85 | 87 | "messages called tweets.Registered users can read and post tweets, but those who are unregistered can only read" + |
86 | 88 | "them.Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San" + |
87 | 89 | "Francisco and has more than 25 offices around the world.Twitter was created in March 2006 by Jack Dorsey," + |
88 | 90 | "Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity," + |
89 | 91 | "with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion" + |
90 | 92 | "search queries per day."; |
91 | | -public string content2 = "Facebook is an online social networking service headquartered in Menlo Park, California. Its website was" + |
| 93 | +public string Content2 = "Facebook is an online social networking service headquartered in Menlo Park, California. Its website was" + |
92 | 94 | "launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo" + |
93 | 95 | "Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the websites" + |
94 | 96 | "membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford" + |
95 | 97 | "University.It gradually added support for students at various other universities and later to high - school students."; |
96 | | -public string content3 = "WhatsApp Messenger is a proprietary cross-platform instant messaging client for smartphones that operates" + |
| 98 | +public string Content3 = "WhatsApp Messenger is a proprietary cross-platform instant messaging client for smartphones that operates" + |
97 | 99 | "under a subscription business model.It uses the Internet to send text messages, images, video, user location and" + |
98 | 100 | "audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user" + |
99 | 101 | "base of up to one billion,[10] making it the most globally popular messaging application.WhatsApp Inc., based in" + |
100 | 102 | "Mountain View, California, was acquired by Facebook Inc.on February 19, 2014, for approximately US$19.3 billion."; |
101 | | - |
102 | | - private List<Object> |
103 | | - TabItems { get; set; } = new List<Object> |
104 | | - { |
105 | | - new { header = new { text = "Twitter", iconCss = "e-twitter" }, content = "Twitter is an online social networking service that enables users to send and read short 140-character " + |
106 | | - "messages called 'tweets'. Registered users can read and post tweets, but those who are unregistered can only read " + |
107 | | - "them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San " + |
108 | | - "Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, " + |
109 | | - "Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, " + |
110 | | - "with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion " + |
111 | | - "search queries per day." }, |
112 | | - new { header = new { text = "Facebook", iconCss = "e-facebook" }, content = "Facebook is an online social networking service headquartered in Menlo Park, California. Its website was " + |
113 | | - "launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo " + |
114 | | - "Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website " + |
115 | | - "membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford " + |
116 | | - "University. It gradually added support for students at various other universities and later to high-school students." }, |
117 | | - new { header = new { text = "WhatsApp", iconCss = "e-whatsapp" }, content = "WhatsApp Messenger is a proprietary cross-platform instant messaging client for smartphones that operates " + |
118 | | - "under a subscription business model. It uses the Internet to send text messages, images, video, user location and " + |
119 | | - "audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user " + |
120 | | - "base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in " + |
121 | | - "Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion." } |
122 | | - }; |
123 | | - |
124 | 103 | } |
125 | 104 |
|
0 commit comments