Issue #854Opened February 9, 2018by chiqui3d0 reactions

Table block

Question

I don't see any basic blocks that you can create a table. Even if I do the block, it is impossible to edit the text. Block example

 bm.add("table", {
        category: 'Basic',
        attributes: { class: "fa fa-table" },
        label: "Table",
        content: `<table class="table">
                    <thead>
                        <tr>
                        <th scope="col">#</th>
                        <th scope="col">First</th>
                        <th scope="col">Last</th>
                        <th scope="col">Handle</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                        <th scope="row">1</th>
                        <td>Mark</td>
                        <td>Otto</td>
                        <td>@mdo</td>
                        </tr>
                        <tr>
                        <th scope="row">2</th>
                        <td>Jacob</td>
                        <td>Thornton</td>
                        <td>@fat</td>
                        </tr>
                        <tr>
                        <th scope="row">3</th>
                        <td>Larry</td>
                        <td>the Bird</td>
                        <td>@twitter</td>
                        </tr>
                    </tbody>
                    </table>`
    });

with this option I can't modify the content of each td and they don't give me the options to duplicate columns or rows.

@artf you plan to create a table block?

Answers (3)

chiqui3dFebruary 9, 20180 reactions

enveloping the th text in a paragraph, works well. but as I said before you plan to add custom table options, for the borders and general table color.

ionic666May 25, 20180 reactions

@chiqui3d hi,can you tell me how to deal with table-block

lock[bot]September 17, 20190 reactions

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.