Trait

net.liftweb.sitemap

MenuSingleton

Related Doc: package sitemap

Permalink

sealed trait MenuSingleton extends AnyRef

A DSL for building menus.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MenuSingleton
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(name: String, linkText: LinkText[Unit]): PreMenu

    Permalink

    A Menu can be created with the syntax

    Menu("home_page", "Home") / "index"
    
    The first parameter is the name of the page and the second is the LinkText which calculates how Links are presented.

    A Menu can be created with the syntax

    Menu("home_page", "Home") / "index"
    
    The first parameter is the name of the page and the second is the LinkText which calculates how Links are presented. The LinkText parameter to Menu will be treated as call-by-name such that it is re-evaluated each time the menu link is needed. That means you can do
    Menu("home_page", S ? "Home") / "index"
    
    and the menu link will be localized for each display. You can look up a Menu item by name as well as using the <lift:menu.item name="home_page"> snippet.

  5. def apply(linkText: LinkText[Unit]): PreMenu

    Permalink

    A Menu can be created with the syntax

    Menu("Home") / "index"
    
    The first parameter is the LinkText which calculates how Links are presented.

    A Menu can be created with the syntax

    Menu("Home") / "index"
    
    The first parameter is the LinkText which calculates how Links are presented. The parameter to Menu will be treated as call-by-name such that it is re-evaluated each time the menu link is needed. That means you can do
    Menu(S ? "Home") / "index"
    
    and the menu link will be localized for each display.

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. def i(nameAndLink: String): PreMenu

    Permalink

    A convenient way to define a Menu item that has the same name as its localized LinkText.

    A convenient way to define a Menu item that has the same name as its localized LinkText.

    Menu.i("Home") / "index"
    
    is short-hand for
    Menu("Home", S.loc("Home", Text("Home")) / "index"
    

    Menu.i("Home") / "index"

  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. def param[T <: AnyRef](name: String, linkText: LinkText[T], parser: (String) ⇒ Box[T], encoder: (T) ⇒ String): PreParamMenu[T]

    Permalink
  19. def params[T <: AnyRef](name: String, linkText: LinkText[T], parser: (List[String]) ⇒ Box[T], encoder: (T) ⇒ List[String]): PreParamsMenu[T]

    Permalink
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped