-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathindex.html
More file actions
278 lines (260 loc) · 9.05 KB
/
index.html
File metadata and controls
278 lines (260 loc) · 9.05 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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
---
title: Tabset
minver: 0.1.11
also:
components/tabset/test.html: Testing - Tabset
elements/hx-tab: <hx-tab>
elements/hx-tabcontent: <hx-tabcontent>
elements/hx-tablist: <hx-tablist>
elements/hx-tabpanel: <hx-tabpanel>
elements/hx-tabset: <hx-tabset>
---
{% extends 'component.njk' %}
{% set contentClasses = 'docs-tabset' %}
{% block page_header %}
{# TODO: add component description #}
{% endblock %}
{% block content %}
<section>
<header>
<h2 id="basic-tabset">Basic Tabset</h2>
{# TODO: add section description #}
</header>
<div class="example resizable">
<div id="demo-basic">
<hx-tabset id="android-desserts">
<hx-tablist>
<hx-tab>Cupcake Ipsum</hx-tab>
<hx-tab id="marshmallow">Biscuit Marshmallow</hx-tab>
<hx-tab>Caramels Marzipan</hx-tab>
</hx-tablist>
<hx-tabcontent>
<hx-tabpanel>
<h3>First Panel</h3>
<div class="hxRow">
<div class="hxCol hxSpan-6">
<p>
Cupcake ipsum dolor sit amet bonbon topping caramels. Sesame snaps
gummi bears liquorice cookie chupa chups fruitcake croissant
chocolate topping. Brownie biscuit wafer marshmallow liquorice
soufflé powder jelly.
</p>
</div>
<div class="hxCol hxSpan-6">
<p>
Sweet roll sesame snaps danish I love jelly wafer dragée soufflé
cake. Cookie chocolate cake gingerbread powder icing. Ice cream
cotton candy gummi bears oat cake sweet pastry.
</p>
</div>
</div>
</hx-tabpanel>
<hx-tabpanel>
<h3>Second Panel</h3>
<p>
Cupcake ipsum dolor sit. Amet danish jelly gummi bears. Danish
caramels danish candy canes macaroon donut icing. Cupcake tiramisu
soufflé fruitcake. Caramels muffin tootsie roll lemon drops bear claw
cotton candy tootsie roll tootsie roll chupa chups. Pudding fruitcake
ice cream marshmallow. Candy sugar plum chupa chups cotton candy
gingerbread pastry gingerbread marshmallow wafer. Jelly-o bonbon
dessert donut.
</p>
<p><a href="#">Link inside the panel</a></p>
<p>
Sweet toffee pie icing croissant halvah chupa chups. Cotton candy pie
sesame snaps. Muffin sesame snaps cake toffee liquorice apple pie
apple pie chupa chups. Lemon drops caramels sugar plum. Sweet oat cake
chocolate pudding cake toffee chocolate topping. Caramels caramels
candy muffin topping toffee. Topping candy canes sesame snaps carrot
cake dragée wafer jelly beans. Macaroon gummies tootsie roll cookie
chocolate cake chocolate cake dragée cupcake. Wafer bonbon sweet roll
sweet roll.
</p>
<p>
Sugar plum bonbon tiramisu tart candy canes sesame snaps tiramisu.
Soufflé chocolate bar macaroon sweet bear claw dragée muffin dragée
jelly. Apple pie gummies cake tiramisu dessert ice cream sweet roll.
Pie fruitcake dragée. Gummi bears pudding muffin tart. Cake liquorice
cheesecake donut. Cake chocolate marshmallow marshmallow dragée cupcake
chocolate cake chocolate. Candy canes chocolate sweet roll apple pie
icing danish chocolate bar. Jujubes toffee gummies powder cupcake
topping chocolate. Cake sugar plum fruitcake brownie.
</p>
</hx-tabpanel>
<hx-tabpanel id="id-should-not-be-overwritten">
<h3>Third Panel</h3>
<img src="images/200x150.png" />
<img src="images/200x150.png" />
<img src="images/200x150.png" />
<img src="images/200x150.png" />
<img src="images/200x150.png" />
<img src="images/200x150.png" />
<img src="images/200x150.png" />
<img src="images/200x150.png" />
<img src="images/200x150.png" />
<img src="images/200x150.png" />
<img src="images/200x150.png" />
<img src="images/200x150.png" />
</hx-tabpanel>
</hx-tabcontent>
</hx-tabset>
</div>
<footer>
{% code 'html' %}
<hx-tabset>
<hx-tablist>
<hx-tab>First</hx-tab>
<hx-tab>Second</hx-tab>
<hx-tab>Third</hx-tab>
</hx-tablist>
<hx-tabcontent>
<hx-tabpanel>...</hx-tabpanel>
<hx-tabpanel>...</hx-tabpanel>
<hx-tabpanel>...</hx-tabpanel>
</hx-tabcontent>
</hx-tabset>
{% endcode %}
</footer>
</div>
</section>
<section>
<header>
<h2 id="dynamic-tabset">Dynamic Tabset</h2>
{# TODO: add section description #}
</header>
<div class="example" id="vue-dynamicTabsetDemo" v-cloak>
<header>
<form class="beta-hxForm" @submit.prevent>
<div>
<label for="numCurrentTab" class="beta-hxFieldName">
Current Tab
</label>
<br />
<input
class="hxTextCtrl"
id="numCurrentTab"
min="0"
step="1"
type="number"
v-model.number="currentTab"
:max="tabs.length - 1"
/>
</div>
<section>
<p class="beta-hxFieldName">
Increase Tab Count
</p>
<p class="hxBtnGroup">
<button
class="hxBtn"
type="button"
@click="addTab('start')"
>
<hx-icon type="plus"></hx-icon>
<span>Prepend New</span>
</button>
<button
class="hxBtn"
type="button"
@click="addTab('end')"
>
<hx-icon type="plus"></hx-icon>
<span>Append New</span>
</button>
</p>
</section>
<section>
<p class="beta-hxFieldName">
Decrease Tab Count
</p>
<p class="hxBtnGroup">
<button
class="hxBtn"
type="button"
@click="removeTab('start')"
>
<hx-icon type="minus"></hx-icon>
<span>Remove First</span>
</button>
<button
class="hxBtn"
type="button"
@click="removeTab('end')"
>
<hx-icon type="minus"></hx-icon>
<span>Remove Last</span>
</button>
</p>
</section>
<fieldset>
<legend>Options</legend>
<hx-checkbox-control>
<input
id="chkAutoUpdate"
type="checkbox"
v-model="autoUpdate"
/>
<label for="chkAutoUpdate">
<hx-checkbox></hx-checkbox>
Update on change
</label>
</hx-checkbox-control>
</fieldset>
<hr class="hxDivider" />
<footer>
<p class="beta-hxButtonSet">
<button
class="hxBtn hxPrimary"
type="button"
:disabled="autoUpdate"
@click="update"
>
Update Tabset
</button>
<button
class="hxBtn hxTertiary"
type="button"
@click="reset"
>
<span>Reset Tabset</span>
<hx-icon type="undo"></hx-icon>
</button>
</p>
</footer>
</form>
</header>
{% raw %}
<div>
<hx-tabset
ref="tabset"
:current-tab="currentTab"
:tabsize="tabSize"
@tabchange="onTabchange"
>
<hx-tablist>
<hx-tab v-for="tab in tabs" :key="tab.id">
Tab #{{tab.id}}
</hx-tab>
</hx-tablist>
<hx-tabcontent>
<hx-tabpanel v-for="tab in tabs" :key="tab.id">
Tab Panel #{{tab.id}}
</hx-tabpanel>
</hx-tabcontent>
</hx-tabset>
</div>
{% endraw %}
<footer>
<pre><code v-text="snippet"></code></pre>
</footer>
</div>
<footer>
<p class="hxSubBody hxSubdued">
<hx-icon type="info-circle"></hx-icon>
Refer to <a href="elements/hx-tabset#managing-state">"Managing State"</a>
in <code><hx-tabset></code> documentation, for more details.
</p>
</footer>
</section>
{% endblock %}