Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

Tables

Since 0.1.0-alpha.22
Insert tables, add and delete rows and columns, and give them a header row.

The 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

Text style

Launch review, March 4

We agreed to ship on the 18th if the payment fixes pass review.

ActionOwnerDueHours
Fix the refund rounding errorPriyaMarch 86
Update the pricing pageSamMarch 112.5
Brief the support teamDanaMarch 151

Insert image

What the image shows, for people who can't see it.

Insert table

Code

Tables.razor
@* 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" />

@code {
    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>
        """;
}

Connection lost

Rejoining the server…