table

package
v0.0.0-...-c353a36 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package table emits native table trees with Caller Class hooks on each semantic node.

templ: version: v0.3.1001

Index

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 TableCellProps struct {
	Class   string
	Scope   string
	ColSpan int
	RowSpan int
	Headers string
	Abbr    string
}

type TableColGroupProps

type TableColGroupProps struct {
	Class string
	Span  int
}

type TableColProps

type TableColProps struct {
	Class string
	Span  int
}

type TableProps

type TableProps struct {
	Class string
	Attrs templ.Attributes
}

type TableRowProps

type TableRowProps struct {
	Class string
}

type TableSectionProps

type TableSectionProps struct {
	Class string
}

Jump to

Keyboard shortcuts

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