-
Notifications
You must be signed in to change notification settings - Fork 0
/
button.html
650 lines (625 loc) · 46.9 KB
/
button.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
<!DOCTYPE html>
<html class="rd-template-admin">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Button | 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. -->
</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;">Button</a></li>
</ul>
</nav>
<div class="rd-page-content">
<h1>Button</h1>
<p>The button styles</p>
<hr>
<h2>Examples</h2>
<p>These are original button without any class.</p>
<p>
<input type="button" value="Input normal button">
<input type="submit" value="Input submit button">
<input type="reset" value="Input reset button">
<input type="button" disabled="" value="Input button disabled">
</p>
<p>
<button type="button">Normal button</button>
<button type="submit">Submit button</button>
<button type="reset">Reset button</button>
<button type="button" disabled="">Disabled button</button>
</p>
<p>Buttons with class.</p>
<p class="code-sample-buttons1">
<button class="rd-button">Default</button>
<button class="rd-button primary">Primary</button>
<button class="rd-button info">Info</button>
<button class="rd-button danger">Danger</button>
<button class="rd-button warning">Warning</button>
<button class="rd-button success">Success</button>
</p>
<h3>Source</h3>
<pre class="preview-source" data-target-src=".code-sample-buttons1" data-target-src-remove-first-space="24" data-inner-html="true"></pre>
<p>Buttons that is link.</p>
<p class="code-sample-buttons-link">
<a class="rd-button" href="#" onclick="return false;">Default</a>
<a class="rd-button primary" href="#" onclick="return false;">Primary</a>
<a class="rd-button info" href="#" onclick="return false;">Info</a>
<a class="rd-button danger" href="#" onclick="return false;">Danger</a>
<a class="rd-button warning" href="#" onclick="return false;">Warning</a>
<a class="rd-button success" href="#" onclick="return false;">Success</a>
</p>
<h3>Source</h3>
<pre class="preview-source" data-target-src=".code-sample-buttons-link" data-target-src-remove-first-space="24" data-inner-html="true"></pre>
<h3>Active state</h3>
<p>Add <code>active</code> class to act as active state.</p>
<p>
<button class="rd-button active">Default</button>
<button class="rd-button primary active">Primary</button>
<button class="rd-button info active">Info</button>
<button class="rd-button danger active">Danger</button>
<button class="rd-button warning active">Warning</button>
<button class="rd-button success active">Success</button>
</p>
<h3>Disabled state</h3>
<p>Add <code>disabled</code> class to act as disabled state.</p>
<p>
<button class="rd-button disabled">Default</button>
<button class="rd-button primary disabled">Primary</button>
<button class="rd-button info disabled">Info</button>
<button class="rd-button danger disabled">Danger</button>
<button class="rd-button warning disabled">Warning</button>
<button class="rd-button success disabled">Success</button>
</p>
<p>Disabled buttons that is link.</p>
<p>
<a class="rd-button disabled" href="#" onclick="return false;">Default</a>
<a class="rd-button primary disabled" href="#" onclick="return false;">Primary</a>
<a class="rd-button info disabled" href="#" onclick="return false;">Info</a>
<a class="rd-button danger disabled" href="#" onclick="return false;">Danger</a>
<a class="rd-button warning disabled" href="#" onclick="return false;">Warning</a>
<a class="rd-button success disabled" href="#" onclick="return false;">Success</a>
</p>
<h3>Sizes</h3>
<p>Tiny size by add <code>tiny</code> class to button element.</p>
<p>
<button class="rd-button tiny">Default</button>
<button class="rd-button primary tiny">Primary</button>
<button class="rd-button info tiny">Info</button>
<button class="rd-button danger tiny">Danger</button>
<button class="rd-button warning tiny">Warning</button>
<button class="rd-button success tiny">Success</button>
</p>
<p>Small size by add <code>small</code> class to button element.</p>
<p>
<button class="rd-button small">Default</button>
<button class="rd-button primary small">Primary</button>
<button class="rd-button info small">Info</button>
<button class="rd-button danger small">Danger</button>
<button class="rd-button warning small">Warning</button>
<button class="rd-button success small">Success</button>
</p>
<p>Large size by add <code>large</code> class to button element.</p>
<p>
<button class="rd-button large">Default</button>
<button class="rd-button primary large">Primary</button>
<button class="rd-button info large">Info</button>
<button class="rd-button danger large">Danger</button>
<button class="rd-button warning large">Warning</button>
<button class="rd-button success large">Success</button>
</p>
<hr>
<h2>Button with dropdown</h2>
<p>The dropdown button uses <a href="https://popper.js.org/" target="popper-js">Popper.js</a> to position the dropdown items.</p>
<div class="rd-block-level-margin-bottom code-sample-buttons-dropdown">
<div class="rd-button-group">
<button class="rd-button dropdown-toggler">Dropdown <i class="fa-solid fa-caret-down"></i></button>
<ul class="rd-dropdown">
<li><a href="#" onclick="return false;">Save A</a></li>
<li><a href="#" onclick="return false;">Save & Publish A</a></li>
<li><a href="#" onclick="return false;">Cancel A</a></li>
</ul>
</div>
<div class="rd-button-group">
<button class="rd-button primary">Button</button>
<button class="rd-button primary dropdown-toggler"><i class="fa-solid fa-caret-down"></i></button>
<ul class="rd-dropdown">
<li><a href="#" onclick="return false;">Save B</a></li>
<li><a href="#" onclick="return false;">Save & Publish B</a></li>
<li><a href="#" onclick="return false;">Cancel B</a></li>
</ul>
</div>
<div class="rd-button-group">
<a class="rd-button" href="#go-somewhere">Link button</a>
<a class="rd-button dropdown-toggler" href="#"><i class="fa-solid fa-caret-down"></i></a>
<ul class="rd-dropdown">
<li><a href="#" onclick="return false;">Save C</a></li>
<li><a href="#" onclick="return false;">Save & Publish C</a></li>
<li><a href="#" onclick="return false;">Cancel C</a></li>
</ul>
</div>
<div class="rd-button-group">
<button class="rd-button info">Button with sub buttons</button>
<button class="rd-button info dropdown-toggler"><i class="fa-solid fa-caret-down"></i></button>
<ul class="rd-dropdown">
<li><button type="button">Button</button></li>
<li><input type="button" value="Input button"></li>
<li><input type="submit" value="Input submit"></li>
<li class="divider"></li>
<li><a href="#" onclick="return false;">Link</a></li>
</ul>
</div>
</div>
<h3>Source</h3>
<pre class="preview-source" data-target-src=".code-sample-buttons-dropdown" data-target-src-remove-first-space="24" data-inner-html="true"></pre>
<h3>Sizes</h3>
<p>Add <code>tiny</code>, <code>small</code>, <code>large</code> class to the button element that contain <code>rd-button</code> class to change its size.</p>
<div class="rd-block-level-margin-bottom code-sample-buttons-dropdownsizes">
<div class="rd-button-group">
<button class="rd-button danger tiny dropdown-toggler">Tiny <i class="fa-solid fa-caret-down"></i></button>
<ul class="rd-dropdown">
<li><a href="#" onclick="return false;">Save</a></li>
<li><a href="#" onclick="return false;">Save & Publish</a></li>
<li><a href="#" onclick="return false;">Cancel</a></li>
</ul>
</div>
<div class="rd-button-group">
<button class="rd-button info small">Small</button>
<button class="rd-button info small dropdown-toggler"><i class="fa-solid fa-caret-down"></i></button>
<ul class="rd-dropdown">
<li><a href="#" onclick="return false;">Save 2</a></li>
<li><a href="#" onclick="return false;">Save & Publish 2</a></li>
<li><a href="#" onclick="return false;">Cancel 2</a></li>
</ul>
</div>
<div class="rd-button-group">
<button class="rd-button warning dropdown-toggler">Normal <i class="fa-solid fa-caret-down"></i></button>
<ul class="rd-dropdown">
<li><a href="#" onclick="return false;">Save 3</a></li>
<li><a href="#" onclick="return false;">Save & Publish 3</a></li>
<li><a href="#" onclick="return false;">Cancel 3</a></li>
</ul>
</div>
<div class="rd-button-group">
<button class="rd-button success large">Large</button>
<button class="rd-button success large dropdown-toggler"><i class="fa-solid fa-caret-down"></i></button>
<ul class="rd-dropdown">
<li><a href="#" onclick="return false;">Save 4</a></li>
<li><a href="#" onclick="return false;">Save & Publish 4</a></li>
<li><a href="#" onclick="return false;">Cancel 4</a></li>
</ul>
</div>
</div>
<h4>Source</h4>
<pre class="preview-source" data-target-src=".code-sample-buttons-dropdownsizes" data-target-src-remove-first-space="24" data-inner-html="true"></pre>
<h3>Placements</h3>
<p>Add <code>data-placement</code> attribute into button that contain <code>class="dropdown-toggler"</code>. Accept values please see <a href="https://popper.js.org/popper-documentation.html#Popper.placements" target="popper-js-doc">this document</a>.</p>
<div class="rd-block-level-margin-bottom">
<div class="rd-button-group code-sample-buttons-dropdownplacements">
<button class="rd-button dropdown-toggler" data-placement="top left"><i class="fa-solid fa-caret-up"></i> Top left</button>
<ul class="rd-dropdown">
<li><a href="#" onclick="return false;">Save</a></li>
<li><a href="#" onclick="return false;">Save & Publish</a></li>
<li><a href="#" onclick="return false;">Cancel</a></li>
</ul>
</div>
<div class="rd-button-group">
<button class="rd-button dropdown-toggler" data-placement="top">Top center <i class="fa-solid fa-caret-up"></i></button>
<ul class="rd-dropdown">
<li><a href="#" onclick="return false;">Save</a></li>
<li><a href="#" onclick="return false;">Save & Publish</a></li>
<li><a href="#" onclick="return false;">Cancel</a></li>
</ul>
</div>
<div class="rd-button-group">
<button class="rd-button dropdown-toggler" data-placement="top right">Top right <i class="fa-solid fa-caret-up"></i></button>
<ul class="rd-dropdown">
<li><a href="#" onclick="return false;">Save</a></li>
<li><a href="#" onclick="return false;">Save & Publish</a></li>
<li><a href="#" onclick="return false;">Cancel</a></li>
</ul>
</div>
<div class="rd-button-group">
<button class="rd-button dropdown-toggler" data-placement="left top"><i class="fa-solid fa-caret-left"></i> Left top</button>
<ul class="rd-dropdown">
<li><a href="#" onclick="return false;">Save</a></li>
<li><a href="#" onclick="return false;">Save & Publish</a></li>
<li><a href="#" onclick="return false;">Cancel</a></li>
</ul>
</div>
<div class="rd-button-group">
<button class="rd-button dropdown-toggler" data-placement="left"><i class="fa-solid fa-caret-left"></i> Left middle</button>
<ul class="rd-dropdown">
<li><a href="#" onclick="return false;">Save</a></li>
<li><a href="#" onclick="return false;">Save & Publish</a></li>
<li><a href="#" onclick="return false;">Cancel</a></li>
</ul>
</div>
<div class="rd-button-group">
<button class="rd-button dropdown-toggler" data-placement="left bottom"><i class="fa-solid fa-caret-left"></i> Left bottom</button>
<ul class="rd-dropdown">
<li><a href="#" onclick="return false;">Save</a></li>
<li><a href="#" onclick="return false;">Save & Publish</a></li>
<li><a href="#" onclick="return false;">Cancel</a></li>
</ul>
</div>
<div class="rd-block-level-margin-bottom"></div>
<div class="rd-button-group">
<button class="rd-button dropdown-toggler" data-placement="bottom left"><i class="fa-solid fa-caret-down"></i> Bottom left</button>
<ul class="rd-dropdown">
<li><a href="#" onclick="return false;">Save</a></li>
<li><a href="#" onclick="return false;">Save & Publish</a></li>
<li><a href="#" onclick="return false;">Cancel</a></li>
</ul>
</div>
<div class="rd-button-group">
<button class="rd-button dropdown-toggler" data-placement="bottom">Bottom center <i class="fa-solid fa-caret-down"></i></button>
<ul class="rd-dropdown">
<li><a href="#" onclick="return false;">Save</a></li>
<li><a href="#" onclick="return false;">Save & Publish</a></li>
<li><a href="#" onclick="return false;">Cancel</a></li>
</ul>
</div>
<div class="rd-button-group">
<button class="rd-button dropdown-toggler" data-placement="bottom right">Bottom right <i class="fa-solid fa-caret-down"></i></button>
<ul class="rd-dropdown">
<li><a href="#" onclick="return false;">Save</a></li>
<li><a href="#" onclick="return false;">Save & Publish</a></li>
<li><a href="#" onclick="return false;">Cancel</a></li>
</ul>
</div>
<div class="rd-button-group">
<button class="rd-button dropdown-toggler" data-placement="right top">Right top <i class="fa-solid fa-caret-right"></i></button>
<ul class="rd-dropdown">
<li><a href="#" onclick="return false;">Save</a></li>
<li><a href="#" onclick="return false;">Save & Publish</a></li>
<li><a href="#" onclick="return false;">Cancel</a></li>
</ul>
</div>
<div class="rd-button-group">
<button class="rd-button dropdown-toggler" data-placement="right">Right middle <i class="fa-solid fa-caret-right"></i></button>
<ul class="rd-dropdown">
<li><a href="#" onclick="return false;">Save</a></li>
<li><a href="#" onclick="return false;">Save & Publish</a></li>
<li><a href="#" onclick="return false;">Cancel</a></li>
</ul>
</div>
<div class="rd-button-group">
<button class="rd-button dropdown-toggler" data-placement="right bottom">Right bottom <i class="fa-solid fa-caret-right"></i></button>
<ul class="rd-dropdown">
<li><a href="#" onclick="return false;">Save</a></li>
<li><a href="#" onclick="return false;">Save & Publish</a></li>
<li><a href="#" onclick="return false;">Cancel</a></li>
</ul>
</div>
<div class="rd-block-level-margin-bottom"></div>
<div class="rd-button-group">
<button class="rd-button">Button</button>
<button class="rd-button dropdown-toggler" data-placement="right top"><i class="fa-solid fa-caret-right"></i></button>
<ul class="rd-dropdown">
<li><a href="#" onclick="return false;">Save B</a></li>
<li><a href="#" onclick="return false;">Save & Publish B</a></li>
<li><a href="#" onclick="return false;">Cancel B</a></li>
</ul>
</div>
</div>
<h4>Source</h4>
<pre class="preview-source" data-target-src=".code-sample-buttons-dropdownplacements" data-target-src-remove-first-space="24"></pre>
<h3>Dynamically activate button with dropdown</h3>
<div id="demo-button-dropdown-placeholder" style="border: 1px dashed #ccc; padding: 0.625rem;"></div>
<button id="demo-dynamically-add-button" type="button">Click here to add a button</button>
<hr>
<h2>Button group</h2>
<div class="rd-block-level-margin-bottom">
<div class="rd-button-group code-sample-buttons-dropdown-btngroup">
<button class="rd-button">Rewind</button>
<button class="rd-button">Play</button>
<button class="rd-button">Stop</button>
<button class="rd-button">Forward</button>
</div>
</div>
<h4>Source</h4>
<pre class="preview-source" data-target-src=".code-sample-buttons-dropdown-btngroup" data-target-src-remove-first-space="24"></pre>
</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>
document.getElementById('demo-dynamically-add-button').addEventListener('click', function(event) {
let buttonDropdown = '<div class="rd-button-group">\
<button class="rd-button dropdown-toggler">Dropdown <i class="fa-solid fa-caret-down"></i></button>\
<ul class="rd-dropdown">\
<li><a href="#" onclick="return false;">Save A</a></li>\
<li><a href="#" onclick="return false;">Save & Publish A</a></li>\
<li><a href="#" onclick="return false;">Cancel A</a></li>\
</ul>\
</div>';
document.getElementById('demo-button-dropdown-placeholder').innerHTML = buttonDropdown;
});
</script>
</body>
</html>