Documentation
¶
Index ¶
- func Table(p TableProps) templ.Component
- func TableBody(p TableSectionProps) templ.Component
- func TableCaption(p TableCaptionProps) templ.Component
- func TableCell(p TableCellProps) templ.Component
- func TableCol(p TableColProps) templ.Component
- func TableColGroup(p TableColGroupProps) templ.Component
- func TableFoot(p TableSectionProps) templ.Component
- func TableHead(p TableSectionProps) templ.Component
- func TableHeadCell(p TableCellProps) templ.Component
- func TableRow(p TableRowProps) templ.Component
- type TableCaptionProps
- type TableCellProps
- type TableColGroupProps
- type TableColProps
- type TableProps
- type TableRowProps
- type TableSectionProps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TableBody ¶
func TableBody(p TableSectionProps) templ.Component
TableBody renders tbody section.
func TableCaption ¶
func TableCaption(p TableCaptionProps) templ.Component
TableCaption renders the table caption.
func TableCell ¶
func TableCell(p TableCellProps) templ.Component
TableCell renders td with colspan and rowspan.
func TableCol ¶
func TableCol(p TableColProps) templ.Component
TableCol renders a single col definition.
func TableColGroup ¶
func TableColGroup(p TableColGroupProps) templ.Component
TableColGroup renders colgroup with optional span.
func TableFoot ¶
func TableFoot(p TableSectionProps) templ.Component
TableFoot renders tfoot section.
func TableHead ¶
func TableHead(p TableSectionProps) templ.Component
TableHead renders thead section.
func TableHeadCell ¶
func TableHeadCell(p TableCellProps) templ.Component
TableHeadCell renders th with optional scope and abbr.
Types ¶
type TableCaptionProps ¶
type TableCaptionProps struct {
Class string
}
TableCaptionProps configures caption styling.
type TableCellProps ¶
type TableCellProps struct {
Class string
// Scope — th scope: col, row, colgroup, rowgroup
Scope string
ColSpan int
RowSpan int
// Headers — ids of related header cells
Headers string
// Abbr — abbreviated header text for th
Abbr string
}
TableCellProps configures th or td cells.
type TableColGroupProps ¶
TableColGroupProps configures colgroup span.
type TableColProps ¶
TableColProps configures a single col element.
type TableProps ¶
type TableProps struct {
Class string
Attrs templ.Attributes
}
TableProps configures the root table element.
type TableRowProps ¶
type TableRowProps struct {
Class string
}
TableRowProps configures one table row.
type TableSectionProps ¶
type TableSectionProps struct {
Class string
}
TableSectionProps configures thead, tbody, or tfoot.