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

Unified Diff: ui/webui/resources/cr_elements/network/cr_network_list.js

Issue 2069323002: Add support for custom entries in <cr_network_select/>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@604119--Implement-Chrome-OS-out-of-box-flow-in-Material-Design--ImplementNetworkSelectionScreen
Patch Set: Fix compile. Created 4 years, 6 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/network/cr_network_list.js
diff --git a/ui/webui/resources/cr_elements/network/cr_network_list.js b/ui/webui/resources/cr_elements/network/cr_network_list.js
index 24178c4e6c44876aa877cba11facde124c8980f8..398c8622a588d263e525ae37e0f476ddc65d779d 100644
--- a/ui/webui/resources/cr_elements/network/cr_network_list.js
+++ b/ui/webui/resources/cr_elements/network/cr_network_list.js
@@ -38,6 +38,7 @@ Polymer({
/**
* The list of network state properties for the items to display.
+ * See <cr-network-list-network-item/> for details.
*
* @type {!Array<!CrOnc.NetworkStateProperties>}
*/
@@ -47,12 +48,31 @@ Polymer({
},
/**
+ * The list of custom state properties for the items to display.
+ * See <cr-network-list-custom-item/> for details.
+ *
+ * @type {!Array<Object>}
+ */
+ customItems: {
+ type: Array,
+ value: function() { return []; }
+ },
+
+ /**
* True if the list is opened.
*/
opened: {
type: Boolean,
value: true
- }
+ },
+
+ /**
+ * Shows all buttons from the list items.
+ */
+ showButtons: {
+ type: Boolean,
+ value: false,
+ },
},
/**

Powered by Google App Engine
This is Rietveld 408576698