table

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 2 Imported by: 0

README

Table Component

Data table.

Import

"github.com/tinywasm/components/table"

Usage

t := &table.Table{
    Headers: []string{"ID", "Name", "Role"},
    Rows: [][]string{
        {"1", "Alice", "Admin"},
        {"2", "Bob", "User"},
    },
}

Properties

  • Headers ([]string): Column headers.
  • Rows ([][]string): Data rows.

Back to Catalog

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Table

type Table struct {
	*dom.Element
	Headers []string
	Rows    [][]string
}

func (*Table) Render

func (t *Table) Render() *dom.Element

func (*Table) RenderCSS

func (t *Table) RenderCSS() string

Jump to

Keyboard shortcuts

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