Design
The tree represents a nested view of other elements with any number of controls.
All the tree element does is provide a way of grouping together nested content. Everything inside a tree is made up of other ACE elements.
Default Tree
The default tree provides the heirarchy with standard Table-style typography.
Document | Select |
---|---|
01 Annual Reports43.2 gb |
|
01.01 Annual Report FY 06.pdf13.46 mb |
|
10.23/home/user/.rbenv/versions/2.1.3/bin/ruby ruby13.46 mb |
|
Document-type Tree
Document trees use larger, heading-style typography for document names.
Document | Select |
---|---|
01 Annual Reports43.2 gb |
|
01.01 Annual Report FY 06.pdf13.46 mb |
|
10.23/home/user/.rbenv/versions/2.1.3/bin/ruby ruby13.46 mb |
|
Code
Trees wrap tables with a few conventions
ace-tree-group
manages heirarchy and state.expanded
collapsed
disabled
depth {1..50}
- The first column always visually implements the heirarchy information
- Expanded/Collapsed component
- Depth indication through indentation
- Content is truncated by default. This behaviour can be disabled at the tree level
- Headings are compact by default. This behaviour can be overridden at the tree level
Example | Element | Code | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Default Tree |
|
||||||||
|
Document Tree |
|
||||||||
|
Expanded tree item |
|
||||||||
|
Collapsed tree item |
|
||||||||
|
Depth indicated with indentation. Set depth on the tree group. |
|
Configuration
Element | Attribute | Description | Example |
---|---|---|---|
.ace-tree
|
.ace-tree-truncated
|
wrap cell contents |
|
.ace-tree
|
.ace-tree-document
|
use full heading style instead of collapsed |
|
.ace-tree-group
|
.ace-tree-level-{n}
|
nested depth of item |
|
.ace-tree-group
|
.ace-table-disabled
|
disabled item |
|
.ace-tree-group
|
.ace-tree-branch-expanded
|
expanded tree group |
|
.ace-tree-group
|
.ace-tree-branch-collapsed
|
collapsed tree group |
|
Element | Attribute | Description | Example |
---|---|---|---|
ace.Tree
|
truncated
|
wrap cell contents |
|
ace.Tree
|
type
|
use full heading style instead of collapsed "document" or nothing |
|
ace.TreeBodyGroup
|
level
|
nested depth of item integer-string, "1", "2" |
|
ace.TreeBodyGroup
|
disabled
|
disabled item "true" |
|
ace.TreeBodyGroup
|
expanded
|
expanded tree group "true" |
|