/
TabStripIndex.cshtml
69 lines (61 loc) · 1.7 KB
/
TabStripIndex.cshtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
@page
@model Telerik.Examples.RazorPages.Pages.TabStrip.TabStripIndexModel
@inject Microsoft.AspNetCore.Antiforgery.IAntiforgery Xsrf
@Html.AntiForgeryToken()
<div class="wrapper">
@(Html.Kendo().TabStrip()
.Name("tabstrip")
.Items(tabstrip =>
{
tabstrip.Add().Text("Dimensions & Weights")
.Selected(true)
.LoadContentFrom(Url.Content("~/Content/TabStrip/ajaxContent1.html"));
tabstrip.Add().Text("Engine")
.LoadContentFrom(Url.Content("~/Content/TabStrip/ajaxContent2.html"));
tabstrip.Add().Text("Chassis")
.LoadContentFrom(Url.Content("~/Content/TabStrip/ajaxContent3.html"));
})
)
</div>
<style>
.wrapper {
height: 455px;
margin: 20px auto;
padding: 20px 0 0 0;
background: url('https://demos.telerik.com/kendo-ui/content/web/tabstrip/bmw.png') no-repeat center 60px transparent;
}
#tabstrip {
max-width: 400px;
float: right;
margin-bottom: 20px;
}
#tabstrip .k-content {
height: 320px !important;
overflow: auto;
}
.specification {
max-width: 670px;
margin: 10px 0;
padding: 0;
}
.specification dt, dd {
max-width: 140px;
float: left;
margin: 0;
padding: 5px 0 8px 0;
}
.specification dt {
clear: left;
width: 100px;
margin-right: 7px;
padding-right: 0;
opacity: 0.7;
}
.specification:after, .wrapper:after {
content: ".";
display: block;
clear: both;
height: 0;
visibility: hidden;
}
</style>