net.liftweb.widgets.menu.MenuWidget

class MenuWidget

class MenuWidget(style : Value, jsObj : JsObj, groups : List[String])

 extends ScalaObject


Builds a Menu widget based on the specified style, groups and JavaScript parameters.

Typical usage involves two parts:

  1. Call MenuWidget.init() in boot to set up resources, etc.
  2. Use the MenuWidget companion object to render a menu.

For example, if we want a VERTICAL styled menu in our pages (HORIZONTAL is default), we can define a "menubar" snippet method:

 import _root_.scala.xml.NodeSeq
 import _root_.net.liftweb.widgets.menu.MenuWidget
 
 class Menubar {
   def render (xhtml : NodeSeq) = MenuWidget()
 }
 

And then in our template(s), we simply use the following code wherever we want a menu:

   <lift:Menubar />
 


Companion: MenuWidget

Source: MenuWidget.scala(96)

 Constructors

def this(style : Value, jsObj : JsObj)
def this(style : Value, jsObj : JsObj, groups : List[String])

 Fields

head.. def head NodeSeq
render.. def render NodeSeq

 Methods

!=.. final def !=(arg0 : Any) Boolean Any
!=.. final def !=(arg0 : Object) Boolean AnyRef
==.. final def ==(arg0 : Object) Boolean AnyRef
==.. final def ==(arg0 : Any) Boolean Any
asInstanceOf.. final def asInstanceOf[T0] T0 Any
clone.. protected def clone Object AnyRef
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. def equals(arg0 : Any) Boolean AnyRef
finalize.. protected def finalize Unit AnyRef
getClass.. final def getClass Class[Any] AnyRef
hashCode.. def hashCode Int AnyRef
isInstanceOf.. final def isInstanceOf[T0] Boolean Any
ne.. final def ne(arg0 : Object) Boolean AnyRef
notify.. final def notify Unit AnyRef
notifyAll.. final def notifyAll Unit AnyRef
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
toString.. def toString String AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
wait.. final def wait Unit AnyRef
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
Copyright (c) 2006-2010 WorldWide Conferencing, LLC. All Rights Reserved.