I'm trying to develop a code to be able to navigate between the rows of an html table using the navigation arrows.
What would be the best way? I need the selected line to have a different class.
My code looks like this:
<tr v-for="(item, index) in itens_adicionados">
<td class="text-right">{{ item.item }}</td>
<td class="text-right">{{ item.codigo }}</td>
<td></td>
<td class="text-right">{{ item.descricao }}</td>
<td class="text-center">{{ item.quantidade }}</td>
<td class="text-right">{{ item.valor_unitario }}</td>
<td class="text-right">{{ item.valor_total }}</td>
</tr>