Feature request: tree tables

+2 votes
asked Sep 26, 2013 in Wanted features by scooper (860 points)

I'd like to have the ability to combine trees with tables. It would look something like:

 

{T+
 Region         | Population
 + World        | 7.13 billion
 ++ America     | 964 million
 +++ Canada     | 35 million
 +++ USA        | 319 million
 ++++ NYC       | 8 million
 ++++ Boston    | 617 thousand
 +++ Mexico     | 117 million
 ++ Europe      | 601 million
 +++ Italy      | 61 million
 +++ Germany    | 82 million
 ++++ Berlin    | 3 million
 ++ Africa      | 1 billion
}
commented Jan 29, 2014 by scooper (860 points)
Any traction on this? Tree-table is a pretty common widget.

1 Answer

+2 votes
answered Mar 10, 2014 by plantuml (131,770 points)
selected Mar 11, 2014 by scooper
 
Best answer

Finally, in the following beta:
https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

You can have:

@startsalt
{
{T
+Region        | Population
+ World        | 7.13 billion
++ America     | 964 million
+++ Canada     | 35 million
+++ USA        | 319 million
++++ NYC       | 8 million
++++ Boston    | 617 thousand
+++ Mexico     | 117 million
++ Europe      | 601 million
+++ Italy      | 61 million
+++ Germany    | 82 million
++++ Berlin    | 3 million
++ Africa      | 1 billion
}
}
@endsalt


This will be released in V7995.
We really did the minimum on this : the table can have only one column...
If you need more, do not hesitate to ask for : we do not want to spend time on unused features.

Regards,
 

commented Mar 10, 2014 by scooper (860 points)
That's brilliant! However, I do need multiple columns, sorry.
commented Mar 10, 2014 by plantuml (131,770 points)
Ok, so with the last beta:

https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

You can have this:
@startsalt
{
{T
+Region        | Population    | Age
+ World        | 7.13 billion  | 30
++ America     | 964 million   | 30
+++ Canada     | 35 million    | 30
+++ USA        | 319 million   | 30
++++ NYC       | 8 million     | 30
++++ Boston    | 617 thousand  | 30
+++ Mexico     | 117 million   | 30
++ Europe      | 601 million   | 30
+++ Italy      | 61 million    | 30
+++ Germany    | 82 million    | 30
++++ Berlin    | 3 million     | 30
++ Africa      | 1 billion     | 30
}
}
@endsalt

This is still minimum : no spanning, no  lines
Hopes it's enough.
commented Mar 10, 2014 by scooper (860 points)
You guys rock! I don't need spans in the tree table, but the lines would be helpful.
commented Mar 11, 2014 by plantuml (131,770 points)
Ok, so last beta supports this:
https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

This will be integrated in V7995

@startsalt
{
{T!
+Region        | Population    | Age
+ World        | 7.13 billion  | 30
++ America     | 964 million   | 30
}
--
{T-
+Region        | Population    | Age
+ World        | 7.13 billion  | 30
++ America     | 964 million   | 30
}
--
{T+
+Region        | Population    | Age
+ World        | 7.13 billion  | 30
++ America     | 964 million   | 30
}
--
{T#
+Region        | Population    | Age
+ World        | 7.13 billion  | 30
++ America     | 964 million   | 30
}
}
@endsalt
commented Mar 11, 2014 by scooper (860 points)
Does exactly what I need! Thanks!
commented Mar 5, 2015 by rajendersaini (160 points)
Where can I get the source code for this beta jar? Is this forked?
commented Mar 5, 2015 by plantuml (131,770 points)
It's integrated in main version since V7995.
commented Mar 5, 2015 by rajendersaini (160 points)
Thank you Scooper for quick response this is really very good feature to document RESTful  api in tree form.
...