Skip to content

Commit f62ec51

Browse files
Navbar: Added demo of navbar with button elements
1 parent 69b1144 commit f62ec51

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

demos/navbar/index.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,33 @@
293293
</div><!-- /footer -->
294294
</div><!--/demo-html -->
295295

296+
<h2>Navbars with button elements</h2>
297+
298+
<p>Instead of links you can also use button elements inside navbars.</p>
299+
300+
<div data-demo-html="true">
301+
<div data-role="navbar" data-iconpos="left">
302+
<ul>
303+
<li><button data-icon="home">One</button></li>
304+
<li><button data-icon="grid" data-theme="b">Two</button></li>
305+
<li><button data-icon="search">Three</button></li>
306+
</ul>
307+
</div><!-- /navbar -->
308+
</div><!--/demo-html -->
309+
310+
<div data-demo-html="true">
311+
<div data-role="header" style="overflow:hidden;">
312+
<h1>I'm a header</h1>
313+
<div data-role="navbar" data-iconpos="right">
314+
<ul>
315+
<li><button data-icon="home">One</button></li>
316+
<li><button data-icon="grid" data-theme="b">Two</button></li>
317+
<li><button data-icon="search">Three</button></li>
318+
</ul>
319+
</div><!-- /navbar -->
320+
</div><!-- /header -->
321+
</div><!--/demo-html -->
322+
296323
</div><!-- /content -->
297324

298325
<?php include( '../jqm-navmenu.php' ); ?>

0 commit comments

Comments
 (0)