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

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: Define property on cr.ui.Tree and fix style. 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..fc2afcec27e0029dea146636020eeadb3a75bfe0 100644
--- a/chrome/browser/resources/shared/js/cr/ui/tree.js
+++ b/chrome/browser/resources/shared/js/cr/ui/tree.js
@@ -218,6 +218,15 @@ cr.define('cr.ui', function() {
};
/**
+ * Determines the visibility of icons next to the treeItem labels. If defined,
+ * space is reserved next to treeItem labels for icons. 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, 'icon-visibility', cr.PropertyKind.ATTR);
arv (Not doing code reviews) 2011/10/28 16:15:12 Sorry, this will not work. The property name shoul
flackr 2011/10/28 22:32:50 Sorry, is there an appropriate place to define the
arv (Not doing code reviews) 2011/10/28 22:41:03 I think I actually removed support for default val
flackr 2011/10/31 14:37:56 No problem, I changed the styles to make anything
+
+ /**
* This is used as a blueprint for new tree item elements.
* @type {!HTMLElement}
*/

Powered by Google App Engine
This is Rietveld 408576698