not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

29 lines
702 B

// Entry component with image and sound
enyo.kind({
name: "TamTam.Collection",
kind: enyo.Control,
published: { name: "", selection: false },
classes: "collection",
components: [
{ name: "collectionImage", classes: "collectionImage", kind: "Image" }
],
// Constructor
create: function() {
this.inherited(arguments);
this.nameChanged();
this.selectionChanged();
},
// Collection setup
nameChanged: function() {
if (this.selection)
this.$.collectionImage.setAttribute("src", "images/database/"+this.name+"sel.png");
else
this.$.collectionImage.setAttribute("src", "images/database/"+this.name+".png");
},
selectionChanged: function() {
this.nameChanged();
}
});