Documentation
¶
Index ¶
- Variables
- func Table(p TableProps) gx.Node
- func TableBody(p TableBodyProps) gx.Node
- func TableCaption(p TableCaptionProps) gx.Node
- func TableCell(p TableCellProps) gx.Node
- func TableFooter(p TableFooterProps) gx.Node
- func TableHead(p TableHeadProps) gx.Node
- func TableHeader(p TableHeaderProps) gx.Node
- func TableRow(p TableRowProps) gx.Node
- type TableBodyProps
- type TableCaptionProps
- type TableCellProps
- type TableFooterProps
- type TableHeadProps
- type TableHeaderProps
- type TableProps
- type TableRowProps
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 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 TableCaptionProps ¶
type TableCellProps ¶
type TableFooterProps ¶
type TableHeadProps ¶
type TableHeaderProps ¶
type TableProps ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.