Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #888 from BenjaminNeilDavis/tree-hide-chevron-chil…
Browse files Browse the repository at this point in the history
…dren

Tree: Hide chervron for folder that doesn't have children #860
  • Loading branch information
Kevin Parkerson committed Nov 26, 2014
2 parents ec1905a + 9116976 commit da02dcd
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 2 deletions.
58 changes: 57 additions & 1 deletion data.js
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,63 @@
sound: '???'
}
]
}
},
tree: [
{
"name": "Aquire",
"type": "folder",
"dataAttributes": { "id": "aquire-folder" },
"children": [
{
"name": "POS Receipt",
"type": "item"
},
{
"name": "Confirm Subscription",
"type": "item"
},
{
"name": "Thanks for Signing Up",
"type": "item"
}
]
},
{
"name": "Onboard",
"type": "folder"
},
{
"name": "Engage",
"type": "folder",
"dataAttributes": { "id": "engage-folder" },
"children":[
{
"name": "Abandoned Cart",
"type": "folder",
"children": [
{
"name": "Archive",
"type": "folder"
}
]
},
{
"name": "Transactional",
"type": "folder",
"children": [
{
"name": "Archive",
"type": "folder"
}
]
}
]
},
{
"name": "Retain",
"type": "folder"
}
]
};

window.data = data;
Expand Down
6 changes: 5 additions & 1 deletion less/tree.less
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
-ms-transform:rotate(90deg);
-webkit-transform:rotate(90deg);
position: relative;
left: -5px;
}

[data-children=false] > .tree-branch-header .icon-caret:before {
Expand Down Expand Up @@ -86,6 +85,11 @@
.tree-branch-children {
margin-left: 14px;
}
&[haschildren='false'] {
.icon-caret {
visibility: hidden;
}
}

}

Expand Down

0 comments on commit da02dcd

Please sign in to comment.