Skip to content

Commit

Permalink
Merge pull request #5 from sravan-s/ellipsis
Browse files Browse the repository at this point in the history
Changed the way title is set
  • Loading branch information
rosepriya-jk authored Aug 25, 2016
2 parents 2c4b369 + 0a50210 commit be92570
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions data-table-cell.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,13 @@

_ellipsisChanged: function(ellipsis) {
this.async(function() {
var span = this.$$('.ellipsis');
if (ellipsis && span) {
this.set('tooltip', span.innerHTML);
if (ellipsis) {
this.addEventListener('mouseover', function() {
var span = this.$$('.ellipsis');
if (span) {
this.set('tooltip', span.innerHTML);
}
}.bind(this));
}
}.bind(this), 500);
},
Expand Down
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h3>Remote Data</h3>
<data-table-column name="Last Name">
<template>[[item.user.name.last]]</template>
</data-table-column>
<data-table-column name="Email">
<data-table-column name="Email" ellipsis>
<template>[[item.user.email]]</template>
</data-table-column>
</iron-data-table>
Expand Down

0 comments on commit be92570

Please sign in to comment.