Home > example-lift-nestedtabs

example-lift-nestedtabs

Example-lift-nestedtabs is a project mainly written in Scala, it's free.

Render nested tabs using Lift 2.2 and jQuery Tools 1.2.5

Example of rendering nested tabs using Lift 2.2 and jQuery Tools 1.2.5 as per the second example on this page: http://flowplayer.org/tools/demos/tabs/multiple-tabs.htm

h1. Requirement

Render this Scala data structure:


val data = List(
  Author("JK Rowling", List(
    Book("Harry Potter and the Deathly Hallows", List(Para("para1"), Para("para2"))),
    Book("Harry Potter and the Goblet of Fire", List(Para("para3"), Para("para4"))))),
  Author ("Joshua Suereth", List(Book("Scala in Depth", List(Para("para5"), Para("para6"))))))

...to look like this:

!https://github.com/opyate/lift-nested-tabs-example/raw/master/src/main/webapp/images/required.png!

h1. Getting started

Run @sbt@

Then:


update
jetty-run

You can override the jettyPort (8081) in Project.scala

Previous:rsubtitle