table

package
v1.0.31-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Table

func Table(st styles.Styles, rows ...base.Element) *tableElement

Table returns a stack of rows (TableRow/TableHeader) with column widths aligned across all of them. A row built some other way (e.g. a plain Divider between sections) is passed through unmeasured.

func TableCell

func TableCell(st styles.Styles, content base.Element) *box.BoxElement

TableCell wraps content as one cell: st.Padding defaults to a comfortable 12x8 if unset.

func TableHeader

func TableHeader(st styles.Styles, cells ...base.Element) *tableRowElement

TableHeader is TableRow with a bold weight and a subtle background by default, to set it apart as a table's header row.

func TableRow

func TableRow(st styles.Styles, cells ...base.Element) *tableRowElement

TableRow returns one row of cells for use inside Table (or standalone, where its cells just take their natural width).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL