datatable

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 3 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 DataTable

type DataTable struct {
	Element
	Headers []string
	Rows    [][]string
}

func (*DataTable) Render

func (t *DataTable) Render() *Element

func (*DataTable) RenderCSS

func (t *DataTable) RenderCSS() *Stylesheet

Jump to

Keyboard shortcuts

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