I want to create a menu that looks like:
HOME | FOO | BAR | ABOUT | CONTACT
How might I go about doing this?
Here is what I have tried:
&
Having found the other answers unsatisfactory I discovered my own solution...
(Note that I am new to Lift and believe menus are too difficult to code manually)
Solution
Full solution is available at: http://subversion.assembla.com/svn/freshcode_public/learn_scala/lift/src/main/scala/code/snippet/CustomMenu.scala
package code.snippet
import net.liftweb.widgets.menu.MenuWidget
import xml.{Text, NodeSeq}
object CustomMenu {
private def styleElem = {
}
def render(in: NodeSeq) = {
// Need to get MenuWidget to provide the plumbing
// We render menu ourselves because MenuWidget doesn't seem to do it properly.
MenuWidget(List("No Group")) ++
{styleElem}
++
++
// This div terminates the floating effects properly.
}
}
Usage:
nothing