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

Unified Diff: third_party/polymer/v1_0/components-chromium/iron-selector/iron-selector-extracted.js

Issue 1862213002: Roll third_party/polymer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove obsolete appearance_browsertest.js, result of a previous bad merge. Created 4 years, 8 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: third_party/polymer/v1_0/components-chromium/iron-selector/iron-selector-extracted.js
diff --git a/third_party/polymer/v1_0/components-chromium/iron-selector/iron-selector-extracted.js b/third_party/polymer/v1_0/components-chromium/iron-selector/iron-selector-extracted.js
index ca0a5f852b6473b15b07dd677dae0a6a6f7bc94f..44f3d680c766234c6169f941cff97544c0043f26 100644
--- a/third_party/polymer/v1_0/components-chromium/iron-selector/iron-selector-extracted.js
+++ b/third_party/polymer/v1_0/components-chromium/iron-selector/iron-selector-extracted.js
@@ -23,6 +23,20 @@
<div name="zot">Zot</div>
</iron-selector>
+ If no matching element is found using `attForSelected`, use `fallbackSelection` as fallback.
+
+ Example:
+
+ <iron-selector attr-for-selected="name" selected="non-existing"
+ fallback-selection="default">
+ <div name="foo">Foo</div>
+ <div name="bar">Bar</div>
+ <div name="default">Default</div>
+ </iron-selector>
+
+ Note: When the selector is multi, the selection will set to `fallbackSelection` iff
+ the number of matching elements is zero.
+
`iron-selector` is not styled. Use the `iron-selected` CSS class to style the selected element.
Example:

Powered by Google App Engine
This is Rietveld 408576698