I have the following template:
<template name="votestream_item">
<tr>
<th>
@{{voter.voter}}<br>
{{number voter.sp}} SP
{{#if whale_vote}}
(W)
{{/if}}
</th>
<th>
<a href="{{post.url}}" target="_blank">{{truncate post.identifier 100}}</a> <br>
${{post.payout}} - {{post.votes}} votes - posted {{timeFromNowReactive post.created_at}}
</th>
<td>{{timeFromNowReactive created_at}}</td>
</tr>
</template>
And its code:
Template.votestream_item.events({
'mouseenter tr': function(e) {
console.log("show data")
},
'mouseleave tr': function(e) {
console.log("hide data")
}
});
What I would like to do, is show this data when mouse enters, and hide it when mouse leaves:
${{post.payout}} - {{post.votes}} votes - posted {{timeFromNowReactive post.created_at}}
What would be the most elegant way to achieve this?