I'm in the process of creating the download Icon on near to the item as like pdf, image, xml etc, and it need to download the corresponding file once I click that Icon.
I have created the below code for creating the download icon:
DownloadItem: Core.view.Icon.extend(childMOMixin, {
model: 'download',
classNames: ['download-icon'],
classNameBindings: [ 'clickable' ],
attributeBindings: [ 'style', 'src' ],
style: function () {
console.log(this);
return 'font-size: ' + this.get('size') + 'px';
}.property('size'),
}).named("ManagedObjectDownloadItem"),
In that, download icon fetching from the model: 'download', But when I used this, its getting affect on folder as well as the corresponding items:
In that attached image can see the affected folder. But it need to come only near to the corresponding item. I'm using Ember 1.4.0 (Quite Old version). Can anyone please help me on this to create download icon only near to the corresponding item. Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire