Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5890)

Unified Diff: chrome/browser/resources/shared/js/cr/ui/tree.js

Issue 8341081: Add icon-visibility attribute to cr.ui.Tree. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make default behaviour the same as before change. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/shared/js/cr/ui/tree.js
diff --git a/chrome/browser/resources/shared/js/cr/ui/tree.js b/chrome/browser/resources/shared/js/cr/ui/tree.js
index c1386358ec03028830dca7367e17279597342881..7d3196e2d64dfa3a51ed8155681eb57d7411d043 100644
--- a/chrome/browser/resources/shared/js/cr/ui/tree.js
+++ b/chrome/browser/resources/shared/js/cr/ui/tree.js
@@ -218,6 +218,16 @@ cr.define('cr.ui', function() {
};
/**
+ * Determines the visibility of icons next to the treeItem labels. If set to
+ * 'hidden', no space is reserved for icons and no icons are displayed next
+ * to treeItem labels. If set to 'parent', folder icons will be displayed
+ * next to expandable parent nodes. If set to 'all' folder icons will be
+ * displayed next to all nodes. Icons can be set using the treeItem's icon
+ * property.
+ */
+ cr.defineProperty(Tree, 'iconVisibility', cr.PropertyKind.ATTR);
arv (Not doing code reviews) 2011/10/31 18:44:54 Sorry this will not work. We need to translate the
flackr 2011/11/01 17:06:14 Have a look, I think this should work.
+
+ /**
* This is used as a blueprint for new tree item elements.
* @type {!HTMLElement}
*/

Powered by Google App Engine
This is Rietveld 408576698