Documentation
¶
Index ¶
Constants ¶
View Source
const ( PartHeader = widget.Part("header") PartRow = widget.Part("row") )
View Source
const NameDataTable = widget.Name("datatable")
NameDataTable is the widget name.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataTable ¶
type DataTable struct {
Element // value embed — NEVER pointer (TinyGo heap constraint)
Headers []string // column titles, fixed at construction
Rows [][]string // initial rows, rendered on first paint; empty is fine
// contains filtered or unexported fields
}
DataTable renders a table whose body rows can be provided up front (Rows) and/or updated later via SetRows (e.g. after an async fetch resolves). Header columns are static — only the body is reactive.
func (*DataTable) RenderCSS ¶
func (t *DataTable) RenderCSS() *css.Stylesheet
RenderCSS defines the datatable visual contract using the style DSL.
func (*DataTable) SetRows ¶ added in v0.1.7
SetRows replaces the table body — safe to call after Init/Render, e.g. once data from an async source (fetch, MCP call) arrives.
func (*DataTable) WidgetKind ¶ added in v0.1.13
func (*DataTable) WidgetName ¶ added in v0.1.13
Click to show internal directories.
Click to hide internal directories.