blob: cd769b8b3d90a79ec50960660710ff17bb1619e6 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
(function() {
'use strict';
Polymer({
is: 'track-info-panel',
properties: {
track: {
type: Object,
value: null,
},
expanded: {
type: Boolean,
value: false,
notify: true,
reflectToAttribute: true,
observer: 'onExpandedChanged_',
},
artworkAvailable: {
type: Boolean,
value: false,
reflectToAttribute: true,
},
ariaExpandArtworkLabel: String,
},
/** @private */
onExpandClick_: function() {
this.expanded = !this.expanded;
},
/** @private */
onExpandedChanged_: function() {
this.$.expand.setAttribute('aria-expanded', Boolean(this.expanded));
},
});
})(); // Anonymous closure