forked from stephanrauh/BootsFaces-Examples
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c956013
commit 7284987
Showing
8 changed files
with
141 additions
and
155 deletions.
There are no files selected for viewing
34 changes: 0 additions & 34 deletions
34
MultiLevelDropDown/src/main/java/de/beyondjava/bootsfaces/examples/Person.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" | ||
xmlns:b="http://bootsfaces.net/ui" xmlns:f="http://java.sun.com/jsf/core"> | ||
|
||
<h:head> | ||
<style> | ||
.nav-tabs>li.active>a, .nav-tabs>li.active>a:hover, .nav-tabs>li.active>a:focus {background-color:#ddd !important; } | ||
</style> | ||
<link type="text/css" rel="stylesheet" href="dropdown-submenu.css"></link> | ||
</h:head> | ||
<h:body> | ||
<b:navBar brand="BootsFaces Rocks!" brandHref="/index.jsf" inverse="true" | ||
fixed="true"> | ||
<b:navbarLinks> | ||
<b:dropMenu value="Help" | ||
styleClass="navbar-inverse" style="color:#fff" | ||
contentClass="navbar-inverse" contentStyle="color:#fff"> | ||
<b:navLink value="About" | ||
styleClass="navbar-inverse" style="color:#fff" | ||
contentClass="navbar-inverse" contentStyle="color:#fff" | ||
onclick="alert('This demo shows how to implement a multi-level drop-down menu.'); return false;"></b:navLink> | ||
<b:dropMenu value="nested help menu" | ||
styleClass="navbar-inverse dropdown-submenu" style="color:#fff" | ||
contentClass="navbar-inverse" contentStyle="color:#fff"> | ||
<b:navLink value="Nested About" | ||
styleClass="navbar-inverse" style="color:#fff" | ||
contentClass="navbar-inverse" contentStyle="color:#fff" | ||
onclick="alert('This demo shows how to implement a multi-level drop-down menu.'); return false;"></b:navLink> | ||
</b:dropMenu> | ||
</b:dropMenu> | ||
</b:navbarLinks> | ||
</b:navBar> | ||
|
||
<b:container> | ||
<p>The interesting part of this demo is the menu bar. It contains nested menus.</p> | ||
<p>I've found the CSS source code at http://bootsnipp.com/snippets/featured/multi-level-dropdown-menu-bs3. It's available under the <a target="#" href="http://bootsnipp.com/license">MIT license</a>.</p> | ||
</b:container> | ||
<!-- Piwik --> | ||
<script type="text/javascript"> | ||
var _paq = _paq || []; | ||
_paq.push([ 'trackPageView' ]); | ||
_paq.push([ 'enableLinkTracking' ]); | ||
(function() { | ||
var u = "//www.atapuerca.de/piwik/"; | ||
_paq.push([ 'setTrackerUrl', u + 'piwik.php' ]); | ||
_paq.push([ 'setSiteId', 4 ]); | ||
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0]; | ||
g.type = 'text/javascript'; | ||
g.async = true; | ||
g.defer = true; | ||
g.src = u + 'piwik.js'; | ||
s.parentNode.insertBefore(g, s); | ||
})(); | ||
</script> | ||
<noscript> | ||
<p> | ||
<img src="//www.atapuerca.de/piwik/piwik.php?idsite=4" style="border: 0;" alt="" /> | ||
</p> | ||
</noscript> | ||
<!-- End Piwik Code --> | ||
</h:body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
|
||
.dropdown-submenu { | ||
position: relative; | ||
} | ||
|
||
.dropdown-submenu>.dropdown-menu { | ||
top: 0; | ||
left: 100%; | ||
margin-top: -6px; | ||
margin-left: -1px; | ||
-webkit-border-radius: 0 6px 6px 6px; | ||
-moz-border-radius: 0 6px 6px; | ||
border-radius: 0 6px 6px 6px; | ||
} | ||
|
||
.dropdown-submenu:hover>.dropdown-menu { | ||
display: block; | ||
} | ||
|
||
.dropdown-submenu>a:after { | ||
display: block; | ||
content: " "; | ||
float: right; | ||
width: 0; | ||
height: 0; | ||
border-color: transparent; | ||
border-style: solid; | ||
border-width: 5px 0 5px 5px; | ||
border-left-color: #ccc; | ||
margin-top: 5px; | ||
margin-right: -10px; | ||
} | ||
|
||
.dropdown-submenu:hover>a:after { | ||
border-left-color: #fff; | ||
} | ||
|
||
.dropdown-submenu.pull-left { | ||
float: none; | ||
} | ||
|
||
.dropdown-submenu.pull-left>.dropdown-menu { | ||
left: -100%; | ||
margin-left: 10px; | ||
-webkit-border-radius: 6px 0 6px 6px; | ||
-moz-border-radius: 6px 0 6px 6px; | ||
border-radius: 6px 0 6px 6px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.