I'm wondering if there is a built-in way to create drop-down menus
from a horizontal navbar using the Menu.builder method. These are the
relevant sections of my current template:
<title>My Title<lift:Menu.title /> </title>
<lift:StyleSheet.entryForm />
<lift:StyleSheet.fancyType />
<script id="jquery" src="/classpath/jquery.js" type="text/
javascript"/>
<script id="json" src="/classpath/json.js" type="text/javascript"/
>
<style>
/* <![CDATA[ */
#navbar ul {
margin: 0;
padding: 2px;
list-style-type: none;
font-weight: bold;
text-align: center;
background-color: #C3D9FF;
}
#navbar ul li {
display: inline;
}
#navbar ul li a {
text-decoration: none;
padding: .2em 1em;
color: #000;
}
#navbar ul li a:hover {
color: #fff;
background-color: #000;
}
/* ]]> */
</style>
</head>
<body>
<div class="container">
<div style="text-align: center">
<br/>
<h1 class="alt">
Welcome to the Genomas DNA Banking Database </h1>
</div>
<hr/>
<div id="navbar">
<ul>
<lift:Menu.builder />
</ul>
</div>
<div class="column span-24 last">
<lift:bind name="content" />
</div>
I have a couple links on my navbar that have sub-menu links. I have
constructed them in my Boot.scala file like this:
List(Menu(Loc("SampleLogging", List("samples", "samplelogs"),
"Browse Sample Logging"),
Menu(Loc("Individuals", List("individual", "individual"),
"Patient Demographics")),
Menu(Loc("Requisition", List("requisition", "requisition"),
"Requisitions")),
Menu(Loc("Samples2", List("samples", "samples"),
"Samples")))) :::
List(Menu(Loc("EditSamp", List("samples", "edit"), "Edit",
Hidden))) :::
...and so on.
I would like to use some built-in tools to be able to make these sub-
menu items drop downs from the "parent" menu item without having to
build an entirely new complex table-based template. Does anyone know
of a way to accomplish this?
Thanks,
David
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---