I have to layout a website that has the table in the photo, I'm using bootstrap and I've already managed to round the edges, but I can't find anything on how to edit the cells when they're selected... I don't handle much js either... and I don't know how I should perform that behavior. Could you guide me a little (to know at least what I should look for to get the blue contours laid out) then the devs are going to do the magic, but I don't even know where the trick begins hahaha. Thank you so much for rescuing me from this dead end.
I leave below the code that I have so far (it is a basic bootstrap table with a rounded edge)
.table {
border-collapse: separate;
border: 1px solid transparent;
border-spacing: 0;
border-radius: 8px;
}
.table tr td,
.table tr th {
border: 1px solid green;
}
.table thead tr th:first-child {
border-radius: 8px 0px 0px 0px;
}
.table thead tr th:last-child {
border-radius: 0px 8px 0px 0px;
}
.table tbody tr:last-child th:first-child {
border-radius: 0px 0px 0px 8px;
}
.table tbody tr:last-child td:last-child {
border-radius: 0px 0px 8px 0px;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<table class="table table-bordered r">
<thead>
<tr class="">
<th scope="col">#</th>
<th scope="col">Handle</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">2</th>
<td>@fat</td>
</tr>
</tbody>
</table>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
try giving it border-left, but it stays inside the table, not outside
If you say that table cells are to be editable by users, there is something in Bootstrap that comes very close to what you need. The
.input-group
.Using these you could make the tab they have with
.input-group-prepend
hidden until you need it.I put together a quick example for you to see. Clicking on one of the rows would cause the tab to appear.
There is a framework called JExcel that does exactly what you ask for:
You can find more information here .