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

Side by Side Diff: polymer_0.5.0/bower_components/core-selection/core-selection.html

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 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 unified diff | Download patch
OLDNEW
1 <!-- 1 <!--
2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. 2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
3 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt 3 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
5 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt 5 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
6 Code distributed by Google as part of the polymer project is also 6 Code distributed by Google as part of the polymer project is also
7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt 7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
8 --> 8 -->
9 <!-- 9 <!--
10 @group Polymer Core Elements 10 @group Polymer Core Elements
11 11
12 The `<core-selection>` element is used to manage selection state. It has no 12 The `<core-selection>` element is used to manage selection state. It has no
13 visual appearance and is typically used in conjunction with another element. 13 visual appearance and is typically used in conjunction with another element.
14 For example, [core-selector](#core-selector) 14 For example, [core-selector](#core-selector)
15 use a `<core-selection>` to manage selection. 15 uses a `<core-selection>` to manage selection.
16 16
17 To mark an item as selected, call the `select(item)` method on 17 To mark an item as selected, call the `select(item)` method on
18 `<core-selection>`. The item itself is an argument to this method. 18 `<core-selection>`. The item itself is an argument to this method.
19 19
20 The `<core-selection>`element manages selection state for any given set of 20 The `<core-selection>`element manages selection state for any given set of
21 items. When an item is selected, the `core-select` event is fired. 21 items. When an item is selected, the `core-select` event is fired.
22 22
23 The attribute `multi` indicates if multiple items can be selected at once. 23 The attribute `multi` indicates if multiple items can be selected at once.
24 24
25 Example: 25 Example:
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 * Toggles the selection state for `item`. 140 * Toggles the selection state for `item`.
141 * @method toggle 141 * @method toggle
142 * @param {any} item: The item to toggle. 142 * @param {any} item: The item to toggle.
143 */ 143 */
144 toggle: function(item) { 144 toggle: function(item) {
145 this.setItemSelected(item, !this.isSelected(item)); 145 this.setItemSelected(item, !this.isSelected(item));
146 } 146 }
147 }); 147 });
148 </script> 148 </script>
149 </polymer-element> 149 </polymer-element>
OLDNEW
« no previous file with comments | « polymer_0.5.0/bower_components/core-selection/bower.json ('k') | polymer_0.5.0/bower_components/core-selection/demo.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698