Looking for advice on how to add a css class to menu item (li tag) - similar to using MenuCssClass function in Loc function
val scratchLoc = Loc("ScratchPage", "scratch" :: Nil, S ? "Scratch", MenuCssClass(() =>"myClass"), LocGroup("main")); best regardsPeter Petersson
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
val scratchLoc = Loc("ScratchPage", "scratch" :: Nil, S ? "Scratch", LocGroup("main"));Scratch = <i class="icon-book icon"></i> Scratch1I get html output of
<ul class="nav">
<li>
<a href="/scratch"><i class="icon-book icon"></i> Scratch1</a>
</li>
</ul>If instead I use the _resources.html file as source then I get the following html output:
<ul class="nav">
<li>
<a href="/scratch"> Scratch</a>
</li>
</ul>~C
def getText(reference: String) : NodeSeq = {
S.loc(reference, Text(reference))
}
val scratchLoc = Loc("ScratchPage", "scratch" :: Nil, getText("Scratch"), LocGroup("main"));