From 3a8dc4195a166478695bb286493f83258a4be49b Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Wed, 8 Feb 2012 16:55:10 -0800 Subject: Tree Components - css fixes --- js/components/treeview/ninja-branch.reel/ninja-branch.css | 11 ++++++----- js/components/treeview/ninja-leaf.reel/ninja-leaf.css | 2 ++ js/components/treeview/treeview.reel/treeview.html | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) (limited to 'js/components/treeview') diff --git a/js/components/treeview/ninja-branch.reel/ninja-branch.css b/js/components/treeview/ninja-branch.reel/ninja-branch.css index 6a458cc7..d8c212e8 100644 --- a/js/components/treeview/ninja-branch.reel/ninja-branch.css +++ b/js/components/treeview/ninja-branch.reel/ninja-branch.css @@ -18,14 +18,15 @@ width: 100%; } .treeRoot .branch .branch-label { - border-bottom: 1px solid #505050; - cursor: pointer; - padding: 3px 0 4px; background-repeat: no-repeat; background-position: 3px 2px; - box-shadow: 0 0 0 0 rgba(0,0,0,0); - font-weight: bold; + border-bottom: 1px solid #505050; box-shadow: 0 3px 4px -4px rgba(0,0,0,0.2); + color: #FFF; + cursor: pointer; + font-weight: bold; + padding: 3px 0 4px; + text-shadow: 1px 1px 0 #000; } /* First Level */ diff --git a/js/components/treeview/ninja-leaf.reel/ninja-leaf.css b/js/components/treeview/ninja-leaf.reel/ninja-leaf.css index b2f427b5..085b11e0 100644 --- a/js/components/treeview/ninja-leaf.reel/ninja-leaf.css +++ b/js/components/treeview/ninja-leaf.reel/ninja-leaf.css @@ -19,6 +19,8 @@ /* Second level */ .branch .branch .leaf-label { background-position: 25px center; + box-shadow: 0 3px 4px -4px rgba(0,0,0,0.2); + color: #FFF; padding-left: 45px; } /* Third level */ diff --git a/js/components/treeview/treeview.reel/treeview.html b/js/components/treeview/treeview.reel/treeview.html index d70b016c..4f9e6a72 100644 --- a/js/components/treeview/treeview.reel/treeview.html +++ b/js/components/treeview/treeview.reel/treeview.html @@ -26,7 +26,7 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot "name" : "Branch" }, "defaultLeaf" : { - "module" : "js/components/treeview/presets-leaf.reel", + "module" : "js/components/treeview/leaf.reel", "name" : "Leaf" }, "scrollview": { -- cgit v1.2.3 From ef032412216d437ce1c7dfc9050ab41adf0594c0 Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Mon, 13 Feb 2012 10:28:44 -0800 Subject: Tree Components - Change the way delegate methods are called --- .../treeview/ninja-branch.reel/ninja-branch.html | 3 +- .../treeview/ninja-branch.reel/ninja-branch.js | 1 - .../treeview/ninja-leaf.reel/ninja-leaf.html | 2 +- .../treeview/ninja-leaf.reel/ninja-leaf.js | 43 ++++++++++++++++++---- 4 files changed, 39 insertions(+), 10 deletions(-) (limited to 'js/components/treeview') diff --git a/js/components/treeview/ninja-branch.reel/ninja-branch.html b/js/components/treeview/ninja-branch.reel/ninja-branch.html index 4d557a94..13f1c575 100644 --- a/js/components/treeview/ninja-branch.reel/ninja-branch.html +++ b/js/components/treeview/ninja-branch.reel/ninja-branch.html @@ -110,7 +110,8 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot "name": "Repetition", "properties": { "element": { "#": "branchList" }, - "contentController": {"@": "arrayController" } + "contentController": {"@": "arrayController" }, + "selectionEnabled": true } }, diff --git a/js/components/treeview/ninja-branch.reel/ninja-branch.js b/js/components/treeview/ninja-branch.reel/ninja-branch.js index 6b9ebb10..0d1a1d0e 100644 --- a/js/components/treeview/ninja-branch.reel/ninja-branch.js +++ b/js/components/treeview/ninja-branch.reel/ninja-branch.js @@ -5,7 +5,6 @@ */ var Montage = require("montage").Montage, - Component = require("montage/ui/component").Component, TreeNode = require("js/components/treeview/tree-node").TreeNode; var Branch = exports.Branch = Montage.create(TreeNode, { diff --git a/js/components/treeview/ninja-leaf.reel/ninja-leaf.html b/js/components/treeview/ninja-leaf.reel/ninja-leaf.html index bd8e8acd..310274bc 100644 --- a/js/components/treeview/ninja-leaf.reel/ninja-leaf.html +++ b/js/components/treeview/ninja-leaf.reel/ninja-leaf.html @@ -37,7 +37,7 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot