Repository navigation
Expand file tree
/
Copy pathorientation.html
More file actions
213 lines (208 loc) · 6.58 KB
/
Copy pathorientation.html
File metadata and controls
213 lines (208 loc) · 6.58 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<div class="e-tab-section">
<div class="col-lg-8 content-wrapper control-section">
<div class="e-sample-resize-container">
<div id="tab_orientation">
<div class="e-tab-header">
<div>Rome</div>
<div>Paris</div>
<div>London</div>
</div>
<div class="e-content">
<div>
<div class="content-title">
<div class="cnt-text">Employee Info</div>
</div>
<div id="rome"></div>
</div>
<div>
<div class="content-title">
<div class="cnt-text">Employee Info</div>
</div>
<div id="paris"></div>
</div>
<div>
<div class="content-title">
<div class="cnt-text">Employee Info</div>
</div>
<div id="london"></div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4 property-section">
<table id="property" title="Properties">
<tbody><tr>
<td style="width: 50%;">
<div>Header Placement</div>
</td>
<td style="width: 50%;">
<div>
<select id="orientation" class="form-control">
<option value="Top">Top</option>
<option value="Bottom">Bottom</option>
<option value="Left">Left</option>
<option value="Right">Right</option>
</select>
</div>
</td>
</tr>
<tr>
<td style="width: 50%;">
<div>Header Styles</div>
</td>
<td style="width: 50%;">
<div>
<select id="headerStyles" class="form-control">
<option value="default">Default</option>
<option value="fill">Fill</option>
<option value="accent">Accent</option>
</select>
</div>
</td>
</tr>
</tbody></table>
</div>
</div>
<div id="action-description">
<p>
This sample demonstrates the <code>header</code> orientation of the <code>Tab</code>. Select option from drop-downs to switch header placement and changing the header style in properties panel.
</p>
</div>
<div id="description">
<p>
The <code>Tab</code> allows to place the header section inside the Tab component either at <code>top / bottom / left / right</code> position by using <code>headerPlacement</code> property.
</p>
<p>
This sample illustrates the use of header placement and <code>showCloseButton</code> property.
Users can change the header position by changing the drop-down value options and can close the Tab item by clicking close icon in header.<br/><br/>
The User can also view different header styles of Tab component by selecting options from `Header Styles` drop-down.
Header styles changed by adding predefined classes in Tab root element and it class names listed below
<br/>
<ul>
<li>Material and Fabric theme differentiates all the available tab header styles such as <code>e-fill</code>, <code>e-background e-accent</code>.</li>
<li>In bootstrap theme, all the styles such as <code>e-fill</code> & <code>e-background e-accent</code> will have the same look with no difference.</li>
</ul>
If above classes not included in root element default style will applied in Tab component.
</p>
<p>
More information about Tab can be found in this <a target="_blank" href="https://ej2.syncfusion.com/javascript/documentation/tab/es5-getting-started/">
documentation</a> section.
</p>
</div>
<style>
.e-content .e-item {
font-size: 12px;
padding: 10px;
text-align: justify;
}
.e-bigger .e-tab .e-list-item {
border-bottom: 1px solid gainsboro;
}
.e-tab .e-list-item {
height: 63px;
border-bottom: 1px solid gainsboro;
}
.e-bigger .e-tab .e-list-item {
height: 63px;
}
.e-tab .e-list-item:last-child {
border-bottom: 1px solid gainsboro;
}
.template-container {
height: 100%;
padding-top: 7px;
}
.left {
display: inline-block;
vertical-align: top;
}
.empImg {
height: 48px;
width: 48px;
}
.name, .role {
line-height: normal;
}
.name {
font-weight: 500;
}
.role {
color: grey;
font-weight: 100;
}
.info {
padding: 7px 0 0 15px;
}
.content-title {
height: 50px;
display: table;
margin: 0 auto;
}
.cnt-text {
vertical-align: middle;
display: table-cell;
font-size: 18px;
font-weight: 600;
}
.e-tab .e-listview .e-header {
height: 50px;
}
.e-tab .e-listview .e-text {
display: block;
text-align: center;
}
/* custom code start*/
.property-panel-content {
padding: 10px;
}
/* custom code end*/
#tab_orientation .e-listview:not(.e-list-template) .e-list-item {
height: 63px;
}
#tab_orientation .e-tab-text {
display: inherit;
}
.e-vertical-tab .e-content .e-item.e-active,
.e-vertical-tab .e-content .e-item.e-active ul.e-list-parent {
width: 100%;
}
/* custom code start*/
@media screen and (min-width: 768px) {
.e-sample-resize-container {
width: 75%;
margin: 0 auto;
}
}
/* custom code end*/
@media screen and (max-width: 481px) {
.control-section.e-tab-section,
.container-fluid,
.e-tab-section .content-wrapper,
.sb-sample-content-area .e-active {
padding-left: 0;
padding-right: 0;
}
}
@media screen and (max-width: 376px) {
#tab_orientation .e-listview:not(.e-list-template) .e-list-item {
padding: 0;
}
.e-tab-section {
padding: 0 5px;
}
.e-tab .e-content.sb-sample-content-area .e-item.e-active {
padding-left: 0;
padding-right: 0;
}
.template-container {
padding: 7px 5px 0;
}
#tab_orientation .e-content .e-item.e-active {
padding: 10px 0;
}
.info {
padding: 7px 0 0 8px;
}
}
</style>