thaw/demo_markdown/docs/table/mod.md
luoxiaozero 1e4832a6d0
refactor demo docs (#64)
* demo: refactor docs

* demo: refactor docs

* demo: refactor docs

* demo: refactor docs
2023-12-31 23:33:05 +08:00

1.6 KiB

Table

view! {
    <Table>
        <thead>
            <tr>
                <th>"tag"</th>
                <th>"count"</th>
                <th>"date"</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>"div"</td>
                <td>"2"</td>
                <td>"2023-10-08"</td>
            </tr>
            <tr>
                <td>"span"</td>
                <td>"2"</td>
                <td>"2023-10-08"</td>
            </tr>
        </tbody>
    </Table>
}

Table Props

Name Type Default Description
class MaybeSignal<String> Default::default() Addtional classes for the table element.
style MaybeSignal<String> Default::default() Table's style.
single_row RwSignal<bool> true Whether columns are not divided. If the prop is true, table cell has no border-right.
single_column RwSignal<bool> false Whether rows are not divided. If the prop is true, table cell has no border-bottom.
children Children Table's content.