Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / ui / new_ui / ui / javascripts / ember / components / tag-a.js @ ff8da5d8

History | View | Annotate | Download (410 Bytes)

1
App.TagAComponent = Ember.Component.extend({
2
    tagName: 'a',
3
    classNames: ['tag', 'has-tip'],
4
    attributeBindings: ['style', 'title'],
5
    title:'tag1',
6
    color: 'yellow',
7
    style: function () {
8
        return 'background-color:'+this.color;
9
    }.property('color'),
10

    
11
    didInsertElement: function() {
12
        this.$().attr('data-tooltip','');
13

    
14
        Foundation.libs.tooltips.init();
15
    },
16

    
17
});