lundi 16 janvier 2017

add tooltip to element which has css text-overflow:ellipses

I have dynamic text which is loaded in table. I want to add popup/tooltip if the text has the css text-overflow:ellipses.

How can I fetch those td only which has the longer text than the width of column.

Ember.$('*').filter(function() {
            return Ember.$(this).css('text-overflow') === 'ellipsis';
        }).each(function(elm){
});

I tried above code to get the td which has text-overflow: ellipsis. But in elm I am getting number. I need complete element of td.




Aucun commentaire:

Enregistrer un commentaire