Usage
{{< td [text = "Cell content"] [inner = "More content"] [class = "ui center aligned"] [txtGrid = "2"] >}}Must be used inside tr partial for table data cells
Description
Creates an HTML td element for table data cells. This is where your actual content goes in table rows. Supports CSS classes and column spanning for flexible layouts.
Parameters
indicates required parameter
text =
"string"
Primary cell content (processed with markdownify)
inner =
"string"
Additional cell content (processed with markdownify)
class =
"string"
CSS class names to apply to the td element
txtGrid =
"number"1
Number of columns to span (colspan attribute)
Examples
Basic table data cells
{{< table >}}
{{< tbody >}}
{{< tr >}}
{{< td >}}Name{{< /td >}}
{{< td >}}John Smith{{< /td >}}
{{< /tr >}}
{{< tr >}}
{{< td >}}Role{{< /td >}}
{{< td >}}Developer{{< /td >}}
{{< /tr >}}
{{< /tbody >}}
{{< /table >}}Table cells with markdown content
{{< table >}}
{{< tbody >}}
{{< tr >}}
{{< td >}}**Features**{{< /td >}}
{{< td >}}
- Fast performance
- Easy to use
- [Documentation](./docs)
{{< /td >}}
{{< /tr >}}
{{< /tbody >}}
{{< /table >}}Markdown formatting including lists and links work perfectly
Table cells with CSS classes
{{< table >}}
{{< tbody >}}
{{< tr >}}
{{< td class="ui center aligned" >}}Centered{{< /td >}}
{{< td class="ui right aligned positive" >}}Success{{< /td >}}
{{< td class="ui negative" >}}Error{{< /td >}}
{{< /tr >}}
{{< /tbody >}}
{{< /table >}}Use CSS framework classes for styling and alignment
Table cells with column spanning
{{< table >}}
{{< tbody >}}
{{< tr >}}
{{< td txtGrid="3" class="ui center aligned" >}}**Header spanning 3 columns**{{< /td >}}
{{< /tr >}}
{{< tr >}}
{{< td >}}Col 1{{< /td >}}
{{< td >}}Col 2{{< /td >}}
{{< td >}}Col 3{{< /td >}}
{{< /tr >}}
{{< /tbody >}}
{{< /table >}}Use txtGrid for colspan to create spanning cells
Table cells with included content and shortcodes
{{< table >}}
{{< tbody >}}
{{< tr >}}
{{< td >}}Documentation{{< /td >}}
{{< td >}}{{<hw t="include" from="quick-start.md">}}{{< /td >}}
{{< /tr >}}
{{< tr >}}
{{< td >}}Examples{{< /td >}}
{{< td >}}{{<hw t="include" from="examples/basic.md">}}{{< /td >}}
{{< /tr >}}
{{< /tbody >}}
{{< /table >}}Include external files directly in table cells for dynamic content
Additional Information