I would like to use the off canvas sidebar in conjunction with my table. Im using node js express app and an ejs view engine to get dynamic values for my table. Im not really sure how I'd go about creating the off canvas side bar. Im guessing I would have to use an anchor tag with my <tbody>
rows.
<% if (terms.length > 0) { %>
<% terms.forEach(term => { %>
<tbody>
<tr>
<th scope="row"><%= term.id %></th>
<td><%= term.term %></td>
<td><%= term.definition %></td>
</tr>
</tbody>
<% }) %>
<% } else { %>
<div class="alert alert-danger" role="alert">
There are no terms or definitions to view
</div>
<% } %>
Considering the above code, I want the user to be able to click on the term ,which is. <td><%= term.term %></td>
then the sidebar appears with the term, id and definition nicely presented on the off canvas.
Any help would be appreciated