Documentation
¶
Overview ¶
Package table emits native table trees with Caller Class hooks on each semantic node.
templ: version: v0.3.1001
Index ¶
- func Table(props TableProps) templ.Component
- func TableBody(props TableSectionProps) templ.Component
- func TableCaption(props TableCaptionProps) templ.Component
- func TableCell(props TableCellProps) templ.Component
- func TableCol(props TableColProps) templ.Component
- func TableColGroup(props TableColGroupProps) templ.Component
- func TableFoot(props TableSectionProps) templ.Component
- func TableHead(props TableSectionProps) templ.Component
- func TableHeadCell(props TableCellProps) templ.Component
- func TableRow(props TableRowProps) templ.Component
- type TableCaptionProps
- type TableCellProps
- type TableColGroupProps
- type TableColProps
- type TableProps
- type TableRowProps
- type TableSectionProps
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Table ¶
func Table(props TableProps) templ.Component
Example (Plain) ¶
package main
import (
"bytes"
"context"
"fmt"
"github.com/fastygo/base/table"
)
func main() {
var buf bytes.Buffer
cmp := table.Table(table.TableProps{Class: "data-grid"})
if err := cmp.Render(context.Background(), &buf); err != nil {
panic(err)
}
fmt.Print(buf.String())
}
Output: <table class="data-grid"></table>
func TableBody ¶
func TableBody(props TableSectionProps) templ.Component
func TableCaption ¶
func TableCaption(props TableCaptionProps) templ.Component
func TableCell ¶
func TableCell(props TableCellProps) templ.Component
func TableCol ¶
func TableCol(props TableColProps) templ.Component
func TableColGroup ¶
func TableColGroup(props TableColGroupProps) templ.Component
func TableFoot ¶
func TableFoot(props TableSectionProps) templ.Component
func TableHead ¶
func TableHead(props TableSectionProps) templ.Component
func TableHeadCell ¶
func TableHeadCell(props TableCellProps) templ.Component
func TableRow ¶
func TableRow(props TableRowProps) templ.Component
Types ¶
type TableCaptionProps ¶
type TableCaptionProps struct {
Class string
}
type TableCellProps ¶
type TableColGroupProps ¶
type TableColProps ¶
type TableProps ¶
type TableProps struct {
Class string
Attrs templ.Attributes
}
type TableRowProps ¶
type TableRowProps struct {
Class string
}
type TableSectionProps ¶
type TableSectionProps struct {
Class string
}
Click to show internal directories.
Click to hide internal directories.