Locs and some attributes such as target="_blank"

19 views
Skip to first unread message

alexmnyc

unread,
May 21, 2013, 4:13:16 PM5/21/13
to lif...@googlegroups.com
i'm attempting to wire in some Menu items with absolute urls and other relative links that need to open in new window. I don't see a way of supplying such meta data to
 
case class Menu(loc: Loc[_], private val convertableKids: ConvertableToMenu*)
 
Basically, this is what I would like to do:
 
Menu.i("Account",isAbsolute=true, ("target -> "_blank")) / http://google.com >> SettingsGroup
 
or
 
 
Menu.i("Account",isAbsolute=false, ("target -> "_blank")) / "settings" / "account" >> SettingsGroup >> RequireLogin
 
 
What's a good way of enabling menu links with some attributes and allow for absolute urls?

Diego Medina

unread,
May 21, 2013, 8:36:31 PM5/21/13
to Lift
I think this will help you


it will let you define the exact html that a menu entry can have, just override your way through :)

Thanks

  Diego


--
--
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.
 
 



--
Diego Medina
Lift/Scala Developer
di...@fmpwizard.com
http://fmpwizard.telegr.am

a.mik...@gmail.com

unread,
May 21, 2013, 8:48:14 PM5/21/13
to Lift
Very cool. I’ll explore. Thank you, again!
Reply all
Reply to author
Forward
0 new messages