I'm using AngularJS with ngtable.
Every time when I'm creating a table I put ui-sref on <tr> element like this:
<tr ng-repeat="element in $data" ui-sref="app.some.details.info({id: element.id})">
<td>{{element.name}}</td>
<td>{{element.info}}</td>
</tr>
However, this doesn't allow the user to open entry in a new tab, right-click on it to open in a new window, etc (it doesn't act like <a> )
Is there any way that I could make the whole row clickable with the option to open in new tab/window (like in the case)
Yo ! If you want your row content acting like an
<a />element, maybe you can wrap your<td>content with an anchor. Something like this:You can also create some custom javascript that will recreate
<a />behaviour. Create click listener for each table row and usewindow.location.href = ....