table

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 1 Imported by: ? modules, 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

View Source
var TableBodyFixtures = gx.Fixtures[TableBodyProps]{"Empty": {}}
View Source
var TableCaptionFixtures = gx.Fixtures[TableCaptionProps]{"Caption": {Children: gx.Text("A caption.")}}
View Source
var TableCellFixtures = gx.Fixtures[TableCellProps]{"Cell": {Children: gx.Text("Value")}}
View Source
var TableFixtures = gx.Fixtures[TableProps]{
	"Simple": {Children: gx.Frag(
		TableCaption(TableCaptionProps{Children: gx.Text("A list of invoices.")}),
		invoiceHead(),
		TableBody(TableBodyProps{Children: invoiceRows()}),
	)},
	"Footer": {Children: gx.Frag(
		invoiceHead(),
		TableBody(TableBodyProps{Children: invoiceRows()}),
		TableFooter(TableFooterProps{Children: TableRow(TableRowProps{Children: gx.Frag(
			TableCell(TableCellProps{Attrs: gx.Attrs{{Key: "colspan", Value: "2"}}, Children: gx.Text("Total")}),
			TableCell(TableCellProps{Children: gx.Text("$200.00")}),
		)})}),
	)},
	"Selected": {Children: gx.Frag(
		invoiceHead(),
		TableBody(TableBodyProps{Children: gx.Frag(
			TableRow(TableRowProps{Attrs: gx.Attrs{{Key: "data-state", Value: "selected"}}, Children: gx.Frag(
				TableCell(TableCellProps{Children: gx.Text("INV-001")}),
				TableCell(TableCellProps{Children: gx.Text("Paid")}),
				TableCell(TableCellProps{Children: gx.Text("$120.00")}),
			)}),
			TableRow(TableRowProps{Children: gx.Frag(
				TableCell(TableCellProps{Children: gx.Text("INV-002")}),
				TableCell(TableCellProps{Children: gx.Text("Open")}),
				TableCell(TableCellProps{Children: gx.Text("$80.00")}),
			)}),
		)}),
	)},
}
View Source
var TableFooterFixtures = gx.Fixtures[TableFooterProps]{"Empty": {}}
View Source
var TableHeadFixtures = gx.Fixtures[TableHeadProps]{"Header": {Children: gx.Text("Column")}}
View Source
var TableHeaderFixtures = gx.Fixtures[TableHeaderProps]{"Empty": {}}
View Source
var TableRowFixtures = gx.Fixtures[TableRowProps]{"Empty": {}}

Functions

func Table

func Table(p TableProps) gx.Node

func TableBody

func TableBody(p TableBodyProps) gx.Node

func TableCaption

func TableCaption(p TableCaptionProps) gx.Node

func TableCell

func TableCell(p TableCellProps) gx.Node

func TableFooter

func TableFooter(p TableFooterProps) gx.Node

func TableHead

func TableHead(p TableHeadProps) gx.Node

func TableHeader

func TableHeader(p TableHeaderProps) gx.Node

func TableRow

func TableRow(p TableRowProps) gx.Node

Types

type TableBodyProps

type TableBodyProps struct {
	// Class adds classes to the root element.
	Class string
	// Children is the rows of the body.
	Children gx.Node
	// Attrs adds HTML attributes to the root element.
	Attrs gx.Attrs
}

type TableCaptionProps

type TableCaptionProps struct {
	// Class adds classes to the root element.
	Class string
	// Children is the caption text.
	Children gx.Node
	// Attrs adds HTML attributes to the root element.
	Attrs gx.Attrs
}

type TableCellProps

type TableCellProps struct {
	// Class adds classes to the root element.
	Class string
	// Children is the content of the cell.
	Children gx.Node
	// Attrs adds HTML attributes to the root element.
	Attrs gx.Attrs
}

type TableFooterProps

type TableFooterProps struct {
	// Class adds classes to the root element.
	Class string
	// Children is the rows of the footer.
	Children gx.Node
	// Attrs adds HTML attributes to the root element.
	Attrs gx.Attrs
}

type TableHeadProps

type TableHeadProps struct {
	// Class adds classes to the root element.
	Class string
	// Children is the content of the header cell.
	Children gx.Node
	// Attrs adds HTML attributes to the root element.
	Attrs gx.Attrs
}

type TableHeaderProps

type TableHeaderProps struct {
	// Class adds classes to the root element.
	Class string
	// Children is the rows of the header.
	Children gx.Node
	// Attrs adds HTML attributes to the root element.
	Attrs gx.Attrs
}

type TableProps

type TableProps struct {
	// Class adds classes to the table element.
	Class string
	// Children is the content of the table: the caption, header, body and footer.
	Children gx.Node
	// Attrs adds HTML attributes to the table element.
	Attrs gx.Attrs
}

type TableRowProps

type TableRowProps struct {
	// Class adds classes to the root element.
	Class string
	// Children is the cells of the row.
	Children gx.Node
	// Attrs adds HTML attributes to the root element.
	Attrs gx.Attrs
}

Jump to

Keyboard shortcuts

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