MenuCssClass

olon.sitemap.Loc.MenuCssClass
case class MenuCssClass(cssClass: StringFunc) extends AnyLocParam

MenuCssClass is used to add css to the Menu node. The css allows for replacing menu with an icon and other super-fun and helpful things. cssClass is a StringFunc which can either be a String constant or a Function that returns a String. Thus, you can compute the css based on the current state or you can have a constant. Syntactically you can use either:

 MenuCssClass("foobar") MenuCssClass(() =>
calculateCssForMyMenuItem()) 

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait LocParam[Any]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def onCreate(loc: Loc[_]): Unit

Attributes

Inherited from:
LocParam

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product