-
Notifications
You must be signed in to change notification settings - Fork 0
/
tabs.html
806 lines (666 loc) · 67.5 KB
/
tabs.html
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
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
<!DOCTYPE html>
<html class="rd-template-admin">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Tabs | Rundiz template for admin</title>
<link rel="stylesheet" href="assets/css/sanitize/sanitize.css?npm-v=github%3Acsstools%2Fsanitize.css%23main">
<link rel="stylesheet" href="assets/css/sanitize/typography.css?npm-v=github%3Acsstools%2Fsanitize.css%23main">
<link rel="stylesheet" href="assets/css/sanitize/forms.css?npm-v=github%3Acsstools%2Fsanitize.css%23main">
<link rel="stylesheet" href="assets/font-awesome/css/all.min.css?npm-v=6.0.0">
<link rel="stylesheet" href="assets/css/smartmenus/sm-core-css.css?npm-v=1.1.1">
<link rel="stylesheet" href="assets/css/smartmenus/sm-rdta/sm-rdta.css?v=3ef227ffe8516995345c01c6f1a9b9a2">
<link rel="stylesheet" href="assets/css/rdta/typo-and-form/typo-and-form.css?v=782df4c386eb481a46cf4c87aeeb7d40">
<link rel="stylesheet" href="assets/css/rdta/rundiz-template-admin.css?v=c4af81a435d9eb76bbce005b24a0154d">
<link rel="stylesheet" href="assets/css/rdta-demo-pages.css?v=5c5a3502c8c15fba309fc170b49e4583">
<link class="exclude-preview" rel="stylesheet" href="assets/css-preview/view-source.css?v=856c7087abf9e79c34c08320f05131ce"><!-- preview source css excluded. -->
<link rel="stylesheet" href="assets/css/rdta/components/rdta-tabs.css?v=3842e60c88923fe0d4b69405af8cdde8">
</head>
<body>
<header class="rd-navbar">
<button class="rd-sidebar-toggler" data-target=".rd-page-wrapper" title="Toggle side bar menu"><i class="fa-solid fa-bars fa-fw"></i><span class="screen-reader-only" aria-hidden="true">Toggle side bar menu</span></button>
<div class="rd-site-brand"><a href="./">Admin Dashboard</a></div><!--.rd-site-brand-->
<nav class="nav-right">
<ul class="sm sm-rdta navbar">
<li><a href="#" onclick="return false;"><i class="fa-solid fa-globe fa-fw"></i></a>
<ul>
<li><a href="javascript:alert('link clicked');">Thai</a></li>
<li class="is-active"><a href="javascript:alert('link clicked');">English</a></li>
</ul>
</li>
<li><a href="#" onclick="return false;"><i class="fa-solid fa-bell fa-fw"></i> <span class="rd-notification-badge tiny">3</span></a>
<ul>
<li><a href="#" onclick="return false;">Approve new comments</a></li>
<li><a href="#" onclick="return false;">Approve new posts</a></li>
<li><a href="#" onclick="return false;">There are new contact messages</a></li>
</ul>
</li>
<li class="user"><a href="#" onclick="return false;"><i class="fa-regular fa-circle-user"></i></a>
<ul>
<li><a>Hello, user name</a></li>
<li><a href="#" onclick="return false;">Edit your account</a></li>
<li><a href="#" onclick="return false;">Logout</a></li>
</ul>
</li>
</ul>
</nav><!--.nav-right-->
</header><!--.rd-navbar-->
<div class="rd-page-wrapper">
<div class="rd-sidebar-back"></div>
<section class="rd-sidebar">
<h2 class="screen-reader-only">Sidebar menus</h2>
<div class="rd-sidebar-inner">
<ul class="rd-sidebar-item-list sm sm-vertical sm-rdta">
<li><a href="#" onclick="return false;" title="Admin home"><i class="sidebar-icon fa-solid fa-gauge-high fa-fw"></i> <span class="rd-sidebar-menu-text">Admin home</span></a>
<ul>
<li><a href="./">Admin dashboard</a></li>
<li><a href="javascript:alert('link clicked');">Update</a></li>
</ul>
</li>
<li><a href="#" onclick="return false;" title="Components"><i class="sidebar-icon fa-solid fa-boxes-stacked fa-fw"></i> <span class="rd-sidebar-menu-text">Components</span></a>
<ul>
<li class="sub-menu-heading"><a>Typography & getting started</a></li>
<li><a href="typography.html">Typography & reset</a></li>
<li><a href="basic-layout.html">Basic layout (getting started)</a></li>
<li class="divider"></li>
<li class="sub-menu-heading"><a>More components</a></li>
<li><a href="accordion.html">Accordion</a></li>
<li><a href="alert-box.html">Alert box</a></li>
<li><a href="alert-dialog.html">Alert dialog</a></li>
<li><a href="badge.html">Badge</a></li>
<li><a href="button.html">Button</a></li>
<li><a href="columns-flex.html">Columns flex</a></li>
<li><a href="datatable.html">Data table</a></li>
<li><a href="datatables-js.html">DataTables JS</a></li>
<li><a href="dialog.html">Dialog</a></li>
<li><a href="embeds.html">Embeds</a></li>
<li><a href="form.html">Form</a></li>
<li><a href="helpers.html">Helpers</a></li>
<li><a href="pagination.html">Pagination</a></li>
<li><a href="tabs.html">Tabs</a></li>
<li><a href="text.html">Text</a></li>
<li><a href="tooltips.html">Tooltips</a></li>
</ul>
</li>
<li><a href="#" onclick="return false;" title="Examples"><i class="sidebar-icon fa-solid fa-laptop-code"></i> <span class="rd-sidebar-menu-text">Examples</span></a>
<ul>
<li><a href="example-login.html">Login page</a></li>
<li><a href="example-logout.html">Logout page</a></li>
</ul>
</li>
<li><a href="#" onclick="return false;" title="Tools & guide"><i class="sidebar-icon fa-solid fa-code fa-fw"></i> <span class="rd-sidebar-menu-text">Tools & guide</span></a>
<ul>
<li><a href="credits.html">Credits</a></li>
<li><a href="https://css-tricks.com/snippets/css/complete-guide-grid/" target="tools_cssgrid">CSS grid</a></li>
<li><a href="https://css-tricks.com/snippets/css/a-guide-to-flexbox/" target="tools_cssflex">CSS flex box</a></li>
<li><a href="https://www.w3.org/wiki/HTML_structural_elements" target="tools_html5structural">HTML 5 structural elements</a></li>
<li><a href="http://pxtoem.com/" target="pxtoemconverter">Pixel / <code>em</code> converter</a></li>
</ul>
</li>
<li class="divider"></li>
<li class="sub-menu-heading"><a onclick="return false;" title="Experiments"><i class="sidebar-icon fa-solid fa-vial fa-fw"></i> <span class="rd-sidebar-menu-text">Experiments</span></a></li>
<li><a href="#" onclick="return false;" title="Sticky menu"><i class="sidebar-icon fa-solid fa-thumbtack fa-fw"></i> <span class="rd-sidebar-menu-text">Stickey menu</span></a>
<ul>
<li><a href="stickymenu-long-content.html">Sticky menu (long content)</a></li>
<li><a href="stickymenu-long-menu.html">Sticky menu (long menu)</a></li>
<li><a href="stickymenu-long-content-menu.html">Sticky menu (long content & menu)</a></li>
</ul>
</li>
<li><a href="#" onclick="return false;" title="Sub menus"><i class="sidebar-icon fa-solid fa-folder-tree fa-fw"></i> <span class="rd-sidebar-menu-text">Sub menus</span></a>
<ul>
<li><a href="javascript:alert('link clicked');">1</a>
<ul>
<li><a href="javascript:alert('link clicked');">1.1</a>
<ul>
<li><a href="javascript:alert('link clicked');">1.1.1</a>
<ul>
<li><a href="javascript:alert('link clicked');">1.1.1.1</a></li>
<li><a href="#" onclick="return false;">1.1.1.2</a></li>
<li><a href="#" onclick="return false;">1.1.1.3</a></li>
<li><a href="#" onclick="return false;">1.1.1.4</a></li>
<li><a href="#" onclick="return false;">1.1.1.5</a></li>
</ul>
</li>
<li><a href="#" onclick="return false;">1.1.2</a></li>
<li><a href="#" onclick="return false;">1.1.3</a></li>
<li><a href="#" onclick="return false;">1.1.4</a></li>
<li><a href="#" onclick="return false;">1.1.5</a></li>
</ul>
</li>
<li><a href="#" onclick="return false;">1.2</a></li>
<li><a href="#" onclick="return false;">1.3</a></li>
<li><a href="#" onclick="return false;">1.4</a></li>
<li><a href="#" onclick="return false;">1.5</a></li>
</ul>
</li>
<li><a href="#" onclick="return false;">2 (Deep sub menus)</a>
<ul>
<li><a href="#" onclick="return false;">2.1</a></li>
<li><a href="#" onclick="return false;">2.2</a>
<ul>
<li><a href="#" onclick="return false;">2.2.1</a></li>
<li><a href="#" onclick="return false;">2.2.2</a>
<ul>
<li><a href="#" onclick="return false;">2.2.2.1</a></li>
<li><a href="#" onclick="return false;">2.2.2.2</a>
<ul>
<li><a href="#" onclick="return false;">2.2.2.2.1</a></li>
<li><a href="#" onclick="return false;">2.2.2.2.2</a>
<ul>
<li><a href="#" onclick="return false;">2.2.2.2.2.1</a></li>
<li><a href="#" onclick="return false;">2.2.2.2.2.2</a></li>
<li><a href="#" onclick="return false;">2.2.2.2.2.3</a></li>
</ul>
</li>
<li><a href="#" onclick="return false;">2.2.2.2.3</a></li>
</ul>
</li>
<li><a href="#" onclick="return false;">2.2.2.3</a></li>
</ul>
</li>
<li><a href="#" onclick="return false;">2.2.3</a></li>
</ul>
</li>
<li><a href="#" onclick="return false;">2.3</a></li>
</ul>
</li>
<li><a href="#" onclick="return false;">3 (Very long sub menus)</a>
<ul>
<!-- it is recommended that you should not have more than 15 items per sub menu, or you have to modify options in `rdtaSidebarSmartMenus()` function -->
<li><a href="#" onclick="return false;">3.1</a></li>
<li><a href="#" onclick="return false;">3.2</a></li>
<li><a href="#" onclick="return false;">3.3</a></li>
<li><a href="#" onclick="return false;">3.4</a></li>
<li><a href="#" onclick="return false;">3.5</a></li>
<li><a href="#" onclick="return false;">3.6</a></li>
<li><a href="#" onclick="return false;">3.7</a></li>
<li><a href="#" onclick="return false;">3.8</a></li>
<li><a href="#" onclick="return false;">3.9</a></li>
<li><a href="#" onclick="return false;">3.10</a></li>
<li><a href="#" onclick="return false;">3.11</a></li>
<li><a href="#" onclick="return false;">3.12</a></li>
<li><a href="#" onclick="return false;">3.13</a></li>
<li><a href="#" onclick="return false;">3.14</a></li>
<li><a href="#" onclick="return false;">3.15</a></li>
<li><a href="#" onclick="return false;">3.16</a></li>
<li><a href="#" onclick="return false;">3.17</a></li>
<li><a href="#" onclick="return false;">3.18</a></li>
<li><a href="#" onclick="return false;">3.19</a></li>
<li><a href="#" onclick="return false;">3.20</a></li>
<li><a href="#" onclick="return false;">3.21</a></li>
<li><a href="#" onclick="return false;">3.22</a></li>
<li><a href="#" onclick="return false;">3.23</a></li>
<li><a href="#" onclick="return false;">3.24</a></li>
<li><a href="#" onclick="return false;">3.25</a></li>
<li><a href="#" onclick="return false;">3.26</a></li>
<li><a href="#" onclick="return false;">3.27</a></li>
<li><a href="#" onclick="return false;">3.28</a></li>
<li><a href="#" onclick="return false;">3.29</a></li>
<li><a href="#" onclick="return false;">3.30</a></li>
<li><a href="#" onclick="return false;">3.31</a></li>
<li><a href="#" onclick="return false;">3.32</a></li>
<li><a href="#" onclick="return false;">3.33</a></li>
<li><a href="#" onclick="return false;">3.34</a></li>
<li><a href="#" onclick="return false;">3.35</a></li>
<li><a href="#" onclick="return false;">3.36</a></li>
<li><a href="#" onclick="return false;">3.37</a></li>
<li><a href="#" onclick="return false;">3.38</a></li>
<li><a href="#" onclick="return false;">3.39</a></li>
<li><a href="#" onclick="return false;">3.40</a></li>
<li><a href="#" onclick="return false;">3.41</a></li>
<li><a href="#" onclick="return false;">3.42</a></li>
<li><a href="#" onclick="return false;">3.43</a></li>
<li><a href="#" onclick="return false;">3.44</a></li>
<li><a href="#" onclick="return false;">3.45</a></li>
<li><a href="#" onclick="return false;">3.46</a></li>
<li><a href="#" onclick="return false;">3.47</a></li>
<li><a href="#" onclick="return false;">3.48</a></li>
<li><a href="#" onclick="return false;">3.49</a></li>
<li><a href="#" onclick="return false;">3.50</a></li>
</ul>
</li>
<li><a href="#" onclick="return false;">4</a></li>
<li><a href="#" onclick="return false;">5</a></li>
<li><a href="#" onclick="return false;">6</a></li>
<li><a href="#" onclick="return false;">7</a></li>
<li><a href="#" onclick="return false;">8</a></li>
<li class="divider"><a href="#" onclick="alert('Nothing works here!'); return false;">Nothing here will be display.</a></li>
<li><a href="#" onclick="return false;">The above is <code>li.divider</code></a></li>
<li class="sub-menu-heading"><a href="#" onclick="return false;">This is <code>li.sub-menu-heading</code></a></li>
<li><a href="#" onclick="return false;">9 (Sub menu components)</a>
<ul>
<li><a href="#" onclick="return false;">1</a></li>
<li><a href="#" onclick="return false;">2</a></li>
<li><a href="#" onclick="return false;">3</a></li>
<li class="divider"><a href="#" onclick="alert('Nothing works here!'); return false;">Nothing here will be display.</a></li>
<li><a href="#" onclick="return false;">Divider in sub menus</a></li>
<li class="sub-menu-heading"><a>Deeper sub menu heading</a></li>
<li><a href="#" onclick="return false;">4</a></li>
<li><a href="#" onclick="return false;">5</a></li>
</ul>
</li>
<li><a href="#" onclick="return false;">10</a></li>
</ul>
</li>
<li><a href="#" onclick="return false;" title="Long menu text"><i class="sidebar-icon fa-solid fa-greater-than-equal fa-fw"></i> <span class="rd-sidebar-menu-text">Longggggggggggggggggg menu text</span></a>
<ul>
<li><a href="#" onclick="return false;">longggggggggggggggggggggggggggggggggggggggggggg submenu item 1</a>
<ul>
<li><a href="#" onclick="return false;">longggggggggggggggggggggggggggggggggggggggggggg submenu item 1.1</a></li>
<li><a href="#" onclick="return false;">longggggggggggggggggggggggggggggggggggggggggggg submenu item 1.2</a></li>
<li><a href="#" onclick="return false;">longggggggggggggggggggggggggggggggggggggggggggg submenu item 1.3</a></li>
</ul>
</li>
<li><a href="#" onclick="return false;">longggggggggggggggggggggggggggggggggggggggggggg submenu item 2</a>
<ul>
<li><a href="#" onclick="return false;">longggggggggggggggggggggggggggggggggggggggggggg submenu item 2.1</a>
<ul>
<li><a href="#" onclick="return false;">longggggggggggggggggggggggggggggggggggggggggggg submenu item 2.1.1</a></li>
<li><a href="#" onclick="return false;">longggggggggggggggggggggggggggggggggggggggggggg submenu item 2.1.2</a></li>
<li><a href="#" onclick="return false;">longggggggggggggggggggggggggggggggggggggggggggg submenu item 2.1.3</a></li>
</ul>
</li>
<li><a href="#" onclick="return false;">longggggggggggggggggggggggggggggggggggggggggggg submenu item 2.2</a></li>
<li><a href="#" onclick="return false;">longggggggggggggggggggggggggggggggggggggggggggg submenu item 2.3</a></li>
</ul>
</li>
<li><a href="#" onclick="return false;">longggggggggggggggggggggggggggggggggggggggggggg submenu item 3</a></li>
<li><a href="#" onclick="return false;">longggggggggggggggggggggggggggggggggggggggggggg submenu item 4</a></li>
<li><a href="#" onclick="return false;">longggggggggggggggggggggggggggggggggggggggggggg submenu item 5</a></li>
</ul>
</li>
</ul>
<ul class="rd-sidebar-item-list rd-sidebar-expand-collapse-controls">
<li>
<a data-target=".rd-page-wrapper" title="Expane/collapse menu"><i class="sidebar-icon faicon fa-solid fa-chevron-left fa-fw" data-toggle-icon="fa-chevron-left fa-chevron-right"></i> <span class="screen-reader-only" aria-hidden="true">Expane/collapse menu</span></a>
<hr>
</li>
</ul>
</div><!--.rd-sidebar-inner-->
</section><!--.rd-sidebar-->
<main>
<nav>
<ul class="rd-breadcrumb">
<li><a href="./">Home</a></li>
<li class="current"><a href="#" onclick="return false;">Tabs</a></li>
</ul>
</nav>
<div class="rd-page-content">
<h1>Tabs</h1>
<p>
In order to make tabs works, add these files.
<strong>assets/css/rdta/components/rdta-tabs.css</strong>,
<strong>assets/js/rdta/components/rdta-tabs.js</strong>
</p>
<hr>
<h2 id="tabs-example">Examples</h2>
<div class="tabs code-sample-tabs-sample1">
<ul>
<li><a href="#tabs-1"><abbr title="Rundiz template for admin">RDTA</abbr> tabs</a></li>
<li><a href="#tabs-2">Proin dolor</a></li>
<li><a href="#tabs-3">Aenean lacinia</a></li>
</ul>
<div id="tabs-1">
<p><abbr title="Rundiz template for admin">RDTA</abbr> can use basic element and few CSS class by default. Here is an example.</p>
</div>
<div id="tabs-2">
<p>Morbi tincidunt, dui sit amet facilisis feugiat, odio metus gravida ante, ut pharetra massa metus id nunc. Duis scelerisque molestie turpis. Sed fringilla, massa eget luctus malesuada, metus eros molestie lectus, ut tempus eros massa ut dolor. Aenean aliquet fringilla sem. Suspendisse sed ligula in ligula suscipit aliquam. Praesent in eros vestibulum mi adipiscing adipiscing. Morbi facilisis. Curabitur ornare consequat nunc. Aenean vel metus. Ut posuere viverra nulla. Aliquam erat volutpat. Pellentesque convallis. Maecenas feugiat, tellus pellentesque pretium posuere, felis lorem euismod felis, eu ornare leo nisi vel felis. Mauris consectetur tortor et purus.</p>
</div>
<div id="tabs-3">
<p>Mauris eleifend est et turpis. Duis id erat. Suspendisse potenti. Aliquam vulputate, pede vel vehicula accumsan, mi neque rutrum erat, eu congue orci lorem eget lorem. Vestibulum non ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce sodales. Quisque eu urna vel enim commodo pellentesque. Praesent eu risus hendrerit ligula tempus pretium. Curabitur lorem enim, pretium nec, feugiat nec, luctus a, lacus.</p>
<p>Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, semper at, magna. Nullam ac lacus. Nulla facilisi. Praesent viverra justo vitae neque. Praesent blandit adipiscing velit. Suspendisse potenti. Donec mattis, pede vel pharetra blandit, magna ligula faucibus eros, id euismod lacus dolor eget odio. Nam scelerisque. Donec non libero sed nulla mattis commodo. Ut sagittis. Donec nisi lectus, feugiat porttitor, tempor ac, tempor vitae, pede. Aenean vehicula velit eu tellus interdum rutrum. Maecenas commodo. Pellentesque nec elit. Fusce in lacus. Vivamus a libero vitae lectus hendrerit hendrerit.</p>
</div>
</div>
<h3>Source</h3>
<pre class="preview-source" data-target-src=".code-sample-tabs-sample1" data-target-src-remove-first-space="20"></pre>
<p>To make tabs work, it must be manually activate once document loaded.</p>
<pre>document.addEventListener('DOMContentLoaded', function() {
RDTATabs.init('.tabs');
});</pre>
<h4>Using <code><ol></code></h4>
<div class="tabs">
<ol>
<li><a href="#tabs2-1">Nunc tincidunt</a></li>
<li><a href="#tabs2-2">Proin dolor</a></li>
<li><a href="#tabs2-3">Aenean lacinia</a></li>
</ol>
<div id="tabs2-1">
<p>Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.</p>
</div>
<div id="tabs2-2">
<p>Morbi tincidunt, dui sit amet facilisis feugiat, odio metus gravida ante, ut pharetra massa metus id nunc. Duis scelerisque molestie turpis. Sed fringilla, massa eget luctus malesuada, metus eros molestie lectus, ut tempus eros massa ut dolor. Aenean aliquet fringilla sem. Suspendisse sed ligula in ligula suscipit aliquam. Praesent in eros vestibulum mi adipiscing adipiscing. Morbi facilisis. Curabitur ornare consequat nunc. Aenean vel metus. Ut posuere viverra nulla. Aliquam erat volutpat. Pellentesque convallis. Maecenas feugiat, tellus pellentesque pretium posuere, felis lorem euismod felis, eu ornare leo nisi vel felis. Mauris consectetur tortor et purus.</p>
</div>
<div id="tabs2-3">
<p>Mauris eleifend est et turpis. Duis id erat. Suspendisse potenti. Aliquam vulputate, pede vel vehicula accumsan, mi neque rutrum erat, eu congue orci lorem eget lorem. Vestibulum non ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce sodales. Quisque eu urna vel enim commodo pellentesque. Praesent eu risus hendrerit ligula tempus pretium. Curabitur lorem enim, pretium nec, feugiat nec, luctus a, lacus.</p>
<p>Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, semper at, magna. Nullam ac lacus. Nulla facilisi. Praesent viverra justo vitae neque. Praesent blandit adipiscing velit. Suspendisse potenti. Donec mattis, pede vel pharetra blandit, magna ligula faucibus eros, id euismod lacus dolor eget odio. Nam scelerisque. Donec non libero sed nulla mattis commodo. Ut sagittis. Donec nisi lectus, feugiat porttitor, tempor ac, tempor vitae, pede. Aenean vehicula velit eu tellus interdum rutrum. Maecenas commodo. Pellentesque nec elit. Fusce in lacus. Vivamus a libero vitae lectus hendrerit hendrerit.</p>
</div>
</div>
<h3>With pre-defined CSS classes.</h3>
<p><abbr title="Rundiz template for admin">RDTA</abbr> can also use pre-defined CSS classes.</p>
<div class="tabs rd-tabs code-sample-tabs-predefinedclasses">
<ul class="rd-tabs-nav">
<li class="active"><a href="#tabs-1_1">Tab 1</a></li>
<li><a href="#tabs-1_2">Tab 2</a></li>
<li><a href="#tabs-1_3">Tab 3</a></li>
</ul>
<div id="tabs-1_1" class="rd-tabs-content active">
<p>Tab 1 content.</p>
</div>
<div id="tabs-1_2" class="rd-tabs-content">
<p>Tab 2 content.</p>
</div>
<div id="tabs-1_3" class="rd-tabs-content">
<p>Tab 3 content.</p>
</div>
</div>
<h4>Source</h4>
<pre class="preview-source" data-target-src=".code-sample-tabs-predefinedclasses" data-target-src-remove-first-space="20"></pre>
<h3>Many tabs.</h3>
<p>Resize your browser to see how responsive tabs navbar work.</p>
<div class="tabs">
<ul>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-1" onclick="return false;">Tab 1</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-2" onclick="return false;">Tab 2</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-3" onclick="return false;">Tab 3</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-4" onclick="return false;">Tab 4</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-5" onclick="return false;">Tab 5</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-6" onclick="return false;">Tab 6</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-7" onclick="return false;">Tab 7</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-8" onclick="return false;">Tab 8</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-9" onclick="return false;">Tab 9</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-10" onclick="return false;">Tab 10</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-11" onclick="return false;">Tab 11</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-12" onclick="return false;">Tab 12</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-13" onclick="return false;">Tab 13</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-14" onclick="return false;">Tab 14</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-15" onclick="return false;">Tab 15</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-16" onclick="return false;">Tab 16</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-17" onclick="return false;">Tab 17</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-18" onclick="return false;">Tab 18</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-19" onclick="return false;">Tab 19</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-20" onclick="return false;">Tab 20</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-21" onclick="return false;">Tab 21</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-22" onclick="return false;">Tab 22</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-23" onclick="return false;">Tab 23</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-24" onclick="return false;">Tab 24</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-25" onclick="return false;">Tab 25</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-26" onclick="return false;">Tab 26</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-27" onclick="return false;">Tab 27</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-28" onclick="return false;">Tab 28</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-29" onclick="return false;">Tab 29</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-30" onclick="return false;">Tab 30</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-31" onclick="return false;">Tab 31</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-32" onclick="return false;">Tab 32</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-33" onclick="return false;">Tab 33</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-34" onclick="return false;">Tab 34</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-35" onclick="return false;">Tab 35</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-36" onclick="return false;">Tab 36</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-37" onclick="return false;">Tab 37</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-38" onclick="return false;">Tab 38</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-39" onclick="return false;">Tab 39</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-40" onclick="return false;">Tab 40</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-41" onclick="return false;">Tab 41</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-42" onclick="return false;">Tab 42</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-43" onclick="return false;">Tab 43</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-44" onclick="return false;">Tab 44</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-45" onclick="return false;">Tab 45</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-46" onclick="return false;">Tab 46</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-47" onclick="return false;">Tab 47</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-48" onclick="return false;">Tab 48</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-49" onclick="return false;">Tab 49</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-50" onclick="return false;">Tab 50</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-51" onclick="return false;">Tab 51</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-52" onclick="return false;">Tab 52</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-53" onclick="return false;">Tab 53</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-54" onclick="return false;">Tab 54</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-55" onclick="return false;">Tab 55</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-56" onclick="return false;">Tab 56</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-57" onclick="return false;">Tab 57</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-58" onclick="return false;">Tab 58</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-59" onclick="return false;">Tab 59</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs-60" onclick="return false;">Tab 60</a></li>
</ul>
<div id="tabs-manytabs-1" class="rd-tabs-content">
Many tabs content.
</div>
</div>
<div class="tabs">
<ul>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-1" onclick="return false;">Many Tabs2 Tab 1</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-2" onclick="return false;">Many Tabs2 Tab 2</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-3" onclick="return false;">Many Tabs2 Tab 3</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-4" onclick="return false;">Many Tabs2 Tab 4</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-5" onclick="return false;">Many Tabs2 Tab 5</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-6" onclick="return false;">Many Tabs2 Tab 6</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-7" onclick="return false;">Many Tabs2 Tab 7</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-8" onclick="return false;">Many Tabs2 Tab 8</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-9" onclick="return false;">Many Tabs2 Tab 9</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-10" onclick="return false;">Many Tabs2 Tab 10</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-11" onclick="return false;">Many Tabs2 Tab 11</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-12" onclick="return false;">Many Tabs2 Tab 12</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-13" onclick="return false;">Many Tabs2 Tab 13</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-14" onclick="return false;">Many Tabs2 Tab 14</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-15" onclick="return false;">Many Tabs2 Tab 15</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-16" onclick="return false;">Many Tabs2 Tab 16</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-17" onclick="return false;">Many Tabs2 Tab 17</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-18" onclick="return false;">Many Tabs2 Tab 18</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-19" onclick="return false;">Many Tabs2 Tab 19</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-20" onclick="return false;">Many Tabs2 Tab 20</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-21" onclick="return false;">Many Tabs2 Tab 21</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-22" onclick="return false;">Many Tabs2 Tab 22</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-23" onclick="return false;">Many Tabs2 Tab 23</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-24" onclick="return false;">Many Tabs2 Tab 24</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-25" onclick="return false;">Many Tabs2 Tab 25</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-26" onclick="return false;">Many Tabs2 Tab 26</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-27" onclick="return false;">Many Tabs2 Tab 27</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-28" onclick="return false;">Many Tabs2 Tab 28</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-29" onclick="return false;">Many Tabs2 Tab 29</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-30" onclick="return false;">Many Tabs2 Tab 30</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-31" onclick="return false;">Many Tabs2 Tab 31</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-32" onclick="return false;">Many Tabs2 Tab 32</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-33" onclick="return false;">Many Tabs2 Tab 33</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-34" onclick="return false;">Many Tabs2 Tab 34</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-35" onclick="return false;">Many Tabs2 Tab 35</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-36" onclick="return false;">Many Tabs2 Tab 36</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-37" onclick="return false;">Many Tabs2 Tab 37</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-38" onclick="return false;">Many Tabs2 Tab 38</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-39" onclick="return false;">Many Tabs2 Tab 39</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-40" onclick="return false;">Many Tabs2 Tab 40</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-41" onclick="return false;">Many Tabs2 Tab 41</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-42" onclick="return false;">Many Tabs2 Tab 42</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-43" onclick="return false;">Many Tabs2 Tab 43</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-44" onclick="return false;">Many Tabs2 Tab 44</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-45" onclick="return false;">Many Tabs2 Tab 45</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-46" onclick="return false;">Many Tabs2 Tab 46</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-47" onclick="return false;">Many Tabs2 Tab 47</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-48" onclick="return false;">Many Tabs2 Tab 48</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-49" onclick="return false;">Many Tabs2 Tab 49</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-50" onclick="return false;">Many Tabs2 Tab 50</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-51" onclick="return false;">Many Tabs2 Tab 51</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-52" onclick="return false;">Many Tabs2 Tab 52</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-53" onclick="return false;">Many Tabs2 Tab 53</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-54" onclick="return false;">Many Tabs2 Tab 54</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-55" onclick="return false;">Many Tabs2 Tab 55</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-56" onclick="return false;">Many Tabs2 Tab 56</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-57" onclick="return false;">Many Tabs2 Tab 57</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-58" onclick="return false;">Many Tabs2 Tab 58</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-59" onclick="return false;">Many Tabs2 Tab 59</a></li>
<li class="text-flow-nowrap"><a href="#tabs-manytabs2-60" onclick="return false;">Many Tabs2 Tab 60</a></li>
</ul>
<div id="tabs-manytabs2-1" class="rd-tabs-content">
Many tabs (2) content. For checking tabs horizontal scroll individually.
</div>
</div>
<h3>Manual set active tab.</h3>
<div id="my-custom-tabs1" class="rd-tabs">
<ul class="rd-tabs-nav">
<li><a href="#tabs-manual1_1">Nunc tincidunt</a></li>
<li><a href="#tabs-manual1_2">Manual active tab</a></li>
<li><a href="#tabs-manual1_3">Aenean lacinia</a></li>
</ul>
<div id="tabs-manual1_1" class="rd-tabs-content">
<p>Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.</p>
</div>
<div id="tabs-manual1_2" class="rd-tabs-content">
<p>This tab is set as active via JS option <code>activeTabs: 1</code>. The tab number start from 0.</p>
<pre>RDTATabs.init('.my-custom-tabs1', {activeTabs: 1});</pre>
</div>
<div id="tabs-manual1_3" class="rd-tabs-content">
<p>Mauris eleifend est et turpis. Duis id erat. Suspendisse potenti. Aliquam vulputate, pede vel vehicula accumsan, mi neque rutrum erat, eu congue orci lorem eget lorem. Vestibulum non ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce sodales. Quisque eu urna vel enim commodo pellentesque. Praesent eu risus hendrerit ligula tempus pretium. Curabitur lorem enim, pretium nec, feugiat nec, luctus a, lacus.</p>
<p>Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, semper at, magna. Nullam ac lacus. Nulla facilisi. Praesent viverra justo vitae neque. Praesent blandit adipiscing velit. Suspendisse potenti. Donec mattis, pede vel pharetra blandit, magna ligula faucibus eros, id euismod lacus dolor eget odio. Nam scelerisque. Donec non libero sed nulla mattis commodo. Ut sagittis. Donec nisi lectus, feugiat porttitor, tempor ac, tempor vitae, pede. Aenean vehicula velit eu tellus interdum rutrum. Maecenas commodo. Pellentesque nec elit. Fusce in lacus. Vivamus a libero vitae lectus hendrerit hendrerit.</p>
</div>
</div>
<h3>Remember last tab</h3>
<p>To use remember last tab, it is not recommend to use wide selector such as CSS class but recommended to use id only.<br>
Use <code>rememberLastTab</code> option and set it to <code>true</code> to remember last active tab.</p>
<div id="rdta-tabs-rememberlasttab" class="rd-tabs">
<ul class="rd-tabs-nav">
<li><a href="#tabs-rem1_1">Nunc tincidunt</a></li>
<li><a href="#tabs-rem1_2">Proin dolor</a></li>
<li><a href="#tabs-rem1_3">Aenean lacinia</a></li>
</ul>
<div id="tabs-rem1_1" class="rd-tabs-content">
<p>Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.</p>
</div>
<div id="tabs-rem1_2" class="rd-tabs-content">
<p>Morbi tincidunt, dui sit amet facilisis feugiat, odio metus gravida ante, ut pharetra massa metus id nunc. Duis scelerisque molestie turpis. Sed fringilla, massa eget luctus malesuada, metus eros molestie lectus, ut tempus eros massa ut dolor. Aenean aliquet fringilla sem. Suspendisse sed ligula in ligula suscipit aliquam. Praesent in eros vestibulum mi adipiscing adipiscing. Morbi facilisis. Curabitur ornare consequat nunc. Aenean vel metus. Ut posuere viverra nulla. Aliquam erat volutpat. Pellentesque convallis. Maecenas feugiat, tellus pellentesque pretium posuere, felis lorem euismod felis, eu ornare leo nisi vel felis. Mauris consectetur tortor et purus.</p>
</div>
<div id="tabs-rem1_3" class="rd-tabs-content">
<p>Mauris eleifend est et turpis. Duis id erat. Suspendisse potenti. Aliquam vulputate, pede vel vehicula accumsan, mi neque rutrum erat, eu congue orci lorem eget lorem. Vestibulum non ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce sodales. Quisque eu urna vel enim commodo pellentesque. Praesent eu risus hendrerit ligula tempus pretium. Curabitur lorem enim, pretium nec, feugiat nec, luctus a, lacus.</p>
<p>Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, semper at, magna. Nullam ac lacus. Nulla facilisi. Praesent viverra justo vitae neque. Praesent blandit adipiscing velit. Suspendisse potenti. Donec mattis, pede vel pharetra blandit, magna ligula faucibus eros, id euismod lacus dolor eget odio. Nam scelerisque. Donec non libero sed nulla mattis commodo. Ut sagittis. Donec nisi lectus, feugiat porttitor, tempor ac, tempor vitae, pede. Aenean vehicula velit eu tellus interdum rutrum. Maecenas commodo. Pellentesque nec elit. Fusce in lacus. Vivamus a libero vitae lectus hendrerit hendrerit.</p>
</div>
</div>
<pre>RDTATabs.init('#rdta-tabs-rememberlasttab', {rememberLastTab: true});</pre>
<h3>Ajax</h3>
<div class="tabs code-sample-tabs-ajax">
<ul>
<li><a href="#tabs-a1">Preloaded</a></li>
<li><a href="xhr-page.html" data-targettab="#tabs-a2">Ajax</a></li>
</ul>
<div id="tabs-a1">
<p>Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.</p>
</div>
<div id="tabs-a2"></div>
</div>
<h4>Source</h4>
<pre class="preview-source" data-target-src=".code-sample-tabs-ajax" data-target-src-remove-first-space="20"></pre>
<h3>Vertical</h3>
<p>Add <code>tabs-vertical</code> class to the tabs element to display it in vertical (medium screen or larger).</p>
<div class="tabs tabs-vertical code-sample-tabs-vertical">
<ul>
<li><a href="#" data-targettab="#tabs-v1">Nunc tincidunt</a></li>
<li><a href="#" data-targettab="#tabs-v2">Proin dolor</a></li>
<li><a href="#" data-targettab="#tabs-v3">Aenean lacinia</a></li>
</ul>
<div id="tabs-v1">
<p>Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.</p>
</div>
<div id="tabs-v2">
<p>Morbi tincidunt, dui sit amet facilisis feugiat, odio metus gravida ante, ut pharetra massa metus id nunc. Duis scelerisque molestie turpis. Sed fringilla, massa eget luctus malesuada, metus eros molestie lectus, ut tempus eros massa ut dolor. Aenean aliquet fringilla sem. Suspendisse sed ligula in ligula suscipit aliquam. Praesent in eros vestibulum mi adipiscing adipiscing. Morbi facilisis. Curabitur ornare consequat nunc. Aenean vel metus. Ut posuere viverra nulla. Aliquam erat volutpat. Pellentesque convallis. Maecenas feugiat, tellus pellentesque pretium posuere, felis lorem euismod felis, eu ornare leo nisi vel felis. Mauris consectetur tortor et purus.</p>
</div>
<div id="tabs-v3">
<p>Mauris eleifend est et turpis. Duis id erat. Suspendisse potenti. Aliquam vulputate, pede vel vehicula accumsan, mi neque rutrum erat, eu congue orci lorem eget lorem. Vestibulum non ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce sodales. Quisque eu urna vel enim commodo pellentesque. Praesent eu risus hendrerit ligula tempus pretium. Curabitur lorem enim, pretium nec, feugiat nec, luctus a, lacus.</p>
<p>Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, semper at, magna. Nullam ac lacus. Nulla facilisi. Praesent viverra justo vitae neque. Praesent blandit adipiscing velit. Suspendisse potenti. Donec mattis, pede vel pharetra blandit, magna ligula faucibus eros, id euismod lacus dolor eget odio. Nam scelerisque. Donec non libero sed nulla mattis commodo. Ut sagittis. Donec nisi lectus, feugiat porttitor, tempor ac, tempor vitae, pede. Aenean vehicula velit eu tellus interdum rutrum. Maecenas commodo. Pellentesque nec elit. Fusce in lacus. Vivamus a libero vitae lectus hendrerit hendrerit.</p>
</div>
</div>
<h4>Source</h4>
<pre class="preview-source" data-target-src=".code-sample-tabs-vertical" data-target-src-remove-first-space="20"></pre>
<p>Please note that you can use <code>data-targettab</code> HTML attribute to specify target tab instead of link to <code>#target-tab-number</code>.</p>
<h3>Tabs inside tabs</h3>
<div id="titOuterTabs" class="rd-tabs code-sample-tabs-insidetabs">
<ul class="rd-tabs-nav">
<li><a href="#tit-tab1">Tab 1</a></li>
<li><a href="#tit-tab2">Tab 2</a></li>
</ul>
<div id="tit-tab1" class="rd-tabs-content">
<p>The content in tab 1.</p>
</div>
<div id="tit-tab2" class="rd-tabs-content">
<p>The content in tab 2.</p>
<div id="titInnerTabs" class="tabs-vertical rd-tabs">
<ul class="rd-tabs-nav">
<li><a href="#tit-tab2-1">Inner tab 1</a></li>
<li><a href="#tit-tab2-2">Inner tab 2</a></li>
<li><a href="xhr-page.html" data-targettab="#tit-tab2-3">Ajax</a></li>
</ul>
<div id="tit-tab2-1" class="rd-tabs-content">
<p>The inner tab 2-1.</p>
</div>
<div id="tit-tab2-2" class="rd-tabs-content">
<p>The inner tab 2-2.</p>
</div>
<div id="tit-tab2-3" class="rd-tabs-content"></div>
</div>
</div>
</div>
<h4>Source</h4>
<pre class="preview-source" data-target-src=".code-sample-tabs-insidetabs" data-target-src-remove-first-space="20"></pre>
<p>Activate tabs using specific id.</p>
<pre>RDTATabs.init('#titOuterTabs');</pre>
<h3>Events</h3>
<p>RDTA tabs have few events for hooking.</p>
<table class="rd-datatable">
<thead>
<tr>
<th>Event type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>rdta.tabs.activeTab</td>
<td>This event is fired when tab was set to active or changed tab.</td>
</tr>
<tr>
<td>rdta.tabs.ajaxFailed</td>
<td>This event is fired when XHR failed.</td>
</tr>
<tr>
<td>rdta.tabs.ajaxContentLoaded</td>
<td>This event is fired when ajax tab content was loaded.</td>
</tr>
</tbody>
</table>
<p>Use the <a href="#tabs-example">first example</a> and open console to see detail.</p>
<div class="rd-block-level-margin-bottom rd-tabs-events rdta-demopage-debugbox"></div>
</div><!--.rd-page-content-->
</main>
<footer>
<div class="rd-page-footer-left"><a href="http://rundiz.com" target="_blank">Rundiz</a> template for admin</div>
<div class="rd-page-footer-right">My app version n.n.</div>
</footer>
</div><!--.rd-page-wrapper-->
<script src="//code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="assets/js/smartmenus/jquery.smartmenus.min.js?npm-v=1.1.1"></script>
<script src="assets/js/popper.js/umd/popper.min.js?npm-v=2.11.2"></script>
<script src="assets/js/sticky-sidebar/jquery.sticky-sidebar.min.js?npm-v=3.3.1"></script>
<script src="assets/js/resize-sensor/ResizeSensor.js?v=8652505c23e8fdc8016445c5e13bee64"></script><!-- use with sticky sidebar js, manual update. -->
<script src="assets/js/rdta/rundiz-template-admin.js?v=da4ea17f9a3341bc37d653a0fa05aaed"></script>
<script class="exclude-preview" src="assets/js-preview/view-target-source.js?v=5d8e14607272d449d23384736d9e83c0"></script>
<script class="exclude-preview" src="assets/js-preview/view-source.js?v=8921f78eb4b62617fff7cd24b9329802"></script>
<script src="assets/js/rdta/components/rdta-tabs.js"></script>
<script>
function rdtaDebugTabsEvents() {
document.querySelector('.tabs').addEventListener('rdta.tabs.activeTab', function(e) {
document.querySelector('.rd-tabs-events').insertAdjacentHTML('beforeend', 'Tabs active<br>');
console.log(e.detail);
});
document.querySelector('.tabs').addEventListener('rdta.tabs.ajaxContentLoaded', function(e) {
document.querySelector('.rd-tabs-events').insertAdjacentHTML('beforeend', 'Ajax tab content loaded<br>');
console.log(e.detail);
});
document.querySelector('.tabs').addEventListener('rdta.tabs.ajaxFailed', function() {
document.querySelector('.rd-tabs-events').insertAdjacentHTML('beforeend', 'XHR failed<br>');
});
}// rdtaDebugTabsEvents
document.addEventListener('DOMContentLoaded', function() {
RDTATabs.init('.tabs');
rdtaDebugTabsEvents();
RDTATabs.init('#my-custom-tabs1', {activeTabs: 1});
RDTATabs.init('#rdta-tabs-rememberlasttab', {rememberLastTab: true});
RDTATabs.init('#titOuterTabs');
RDTATabs.init('#titInnerTabs');
});
</script>
</body>
</html>