Tables
Since 0.1.0-alpha.22The table tool is one menu. Insert table opens a dialog for the rows, the columns and a header row. With the caret in a table, the menu adds a row above or below or a column on either side, aligns the whole column, turns the header row on or off, or deletes a row, a column or the table. A new row keeps its column's alignment.
A cell holds what the rest of the text can: formats, links, lists, images, and its own alignment from the alignment tools. A header row's cells are column headers.
Tab and Shift+Tab move between cells. Tab in the last cell leaves the editor, so add a row from the menu.
A table of action items
Put the caret in a cell and open the table menu to add a row or a column; Tab moves to the next cell.
Static
Preview
Launch review, March 4
We agreed to ship on the 18th if the payment fixes pass review.
| Action | Owner | Due | Hours |
|---|---|---|---|
| Fix the refund rounding error | Priya | March 8 | 6 |
| Update the pricing page | Sam | March 11 | 2.5 |
| Brief the support team | Dana | March 15 | 1 |
Code
@* Meeting notes with a table of action items: who does what, by when, and how long, its hours aligned right. *@
<RichTextEditor Grow @bind-Value="_notes" Label="Meeting notes" Rows="10" />
{
private string? _notes =
"""
<h2>Launch review, March 4</h2>
<p>We agreed to ship on the 18th if the payment fixes pass review.</p>
<table>
<thead><tr><th scope="col">Action</th><th scope="col">Owner</th><th scope="col">Due</th><th scope="col" class="ib-align-end">Hours</th></tr></thead>
<tbody>
<tr><td>Fix the refund rounding error</td><td>Priya</td><td>March 8</td><td class="ib-align-end">6</td></tr>
<tr><td>Update the pricing page</td><td>Sam</td><td>March 11</td><td class="ib-align-end">2.5</td></tr>
<tr><td>Brief the support team</td><td>Dana</td><td>March 15</td><td class="ib-align-end">1</td></tr>
</tbody>
</table>
""";
}