OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 var FilesMetadataBox = Polymer({ | 5 var FilesMetadataBox = Polymer({ |
6 is: 'files-metadata-entry', | 6 is: 'files-metadata-entry', |
7 | 7 |
8 properties: { | 8 properties: { |
9 key: { | 9 key: { |
10 type: String, | 10 type: String, |
11 reflectToAttribtue: true, | 11 reflectToAttribtue: true, |
12 }, | 12 }, |
13 | 13 |
14 // If |value| is empty, the entire entry will be hidden. | 14 // If |value| is empty, the entire entry will be hidden. |
15 value: { | 15 value: { |
16 type: String, | 16 type: String, |
17 reflectToAttribtue: true, | 17 reflectToAttribtue: true, |
18 }, | 18 }, |
19 | |
20 loading: { | |
21 type: Boolean, | |
22 reflectToAttribtue: true, | |
23 value: false, | |
24 }, | |
19 }, | 25 }, |
20 | 26 |
27 /** | |
28 * @param {boolean} loading | |
29 * @return {string} calssName for loading if loading is true. | |
30 */ | |
31 setLoadingClass: function(loading) { | |
fukino
2016/09/06 09:12:45
This function looks unnecessary.
harukam
2016/09/06 11:25:24
Acknowledged.
| |
32 return loading ? "loading" : ""; | |
33 }, | |
21 }); | 34 }); |
OLD | NEW |