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

Unified Diff: ui/webui/resources/cr_elements/policy/README.md

Issue 2696903005: Move common cr-policy-indicator behavior into CrPolicyIndicatorBehavior (Closed)
Patch Set: rename hasPolicy Created 3 years, 10 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: ui/webui/resources/cr_elements/policy/README.md
diff --git a/ui/webui/resources/cr_elements/policy/README.md b/ui/webui/resources/cr_elements/policy/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..6f10d00bfaba2202440d1d127b9231d5081a33de
--- /dev/null
+++ b/ui/webui/resources/cr_elements/policy/README.md
@@ -0,0 +1,13 @@
+Policy indicators show when a setting is controlled by something other than the
+user, especially user/device policy. The badge icons are sourced from
+[cr_elements/icons.html](../icons.html) by default. Indicators show a tooltip on
+hover when `CrPolicyStrings` is defined.
+
+Elements like `<cr-policy-pref-indicator>` and `<cr-policy-network-indicator>`
+are designed to be reused in WebUI pages:
+
+ <cr-policy-pref-indicator pref="[[pref]]"></cr-policy-pref-indicator>
+
+For one-off or composed elements, CrPolicyIndicatorBehavior provides some
+configurable properties and calculates dependent properties, such as the
+tooltip, icon, and visibility of the indicator.
dschuyler 2017/02/28 20:09:29 Just a suggestion, totally optional: The above is
michaelpg 2017/02/28 21:55:50 Were you looking for instructions on creating a ne

Powered by Google App Engine
This is Rietveld 408576698