root / snf-cyclades-app / synnefo / ui / new_ui / ui / javascripts / ember / components / tag-el.js @ 82189820
History | View | Annotate | Download (472 Bytes)
1 |
App.TagElComponent = Ember.Component.extend({ |
---|---|
2 |
tagName: 'li', |
3 |
title:'tag1', |
4 |
color: 'yellow', |
5 |
style: function () { |
6 |
return 'background-color:'+this.color; |
7 |
}.property('color'),
|
8 |
|
9 |
didInsertElement: function() { |
10 |
this.$().find('.tag').attr('data-tooltip',''); |
11 |
Foundation.libs.tooltips.init(); |
12 |
}, |
13 |
|
14 |
actions: {
|
15 |
deleteTag: function() { |
16 |
this.sendAction('deleteTag', this.get('param')); |
17 |
}, |
18 |
}, |
19 |
|
20 |
}); |