Versions in this module Expand all Collapse all v0 v0.1.18 May 1, 2026 v0.1.17 May 1, 2026 v0.1.16 Apr 30, 2026 v0.1.15 Apr 30, 2026 v0.1.14 Apr 27, 2026 v0.1.13 Apr 8, 2026 v0.1.12 Apr 8, 2026 v0.1.10 Apr 7, 2026 v0.1.9 Apr 7, 2026 v0.1.8 Apr 5, 2026 v0.1.7 Apr 5, 2026 v0.1.6 Mar 30, 2026 v0.1.5 Mar 23, 2026 v0.1.4 Mar 21, 2026 v0.1.3 Mar 17, 2026 v0.1.2 Mar 16, 2026 v0.1.1 Mar 15, 2026 v0.1.0 Mar 15, 2026 Changes in this version + type CellContext struct + Col int + Index int + IsHovered bool + IsSelected bool + Row int + type CellPaintState struct + Bounds geometry.Rect + Col int + ColorScheme GridColorScheme + Disabled bool + Focused bool + Hovered bool + Index int + Row int + Selected bool + type DefaultPainter struct + func (p DefaultPainter) PaintCellBackground(canvas widget.Canvas, cps CellPaintState) + func (p DefaultPainter) PaintEmptyState(canvas widget.Canvas, bounds geometry.Rect) + func (p DefaultPainter) PaintSelection(canvas widget.Canvas, cps CellPaintState) + type GridColorScheme struct + CellBackground widget.Color + EmptyTextColor widget.Color + FocusColor widget.Color + HoverColor widget.Color + SelectionColor widget.Color + type Option func(*config) + func A11yLabel(label string) Option + func BuildCell(fn func(index int, ctx CellContext) widget.Widget) Option + func CellContent(content cdk.Content[CellContext]) Option + func Columns(n int) Option + func ColumnsAuto(enabled bool) Option + func ColumnsReadonlySignal(sig state.ReadonlySignal[int]) Option + func ColumnsSignal(sig state.Signal[int]) Option + func Disabled(d bool) Option + func DisabledFn(fn func() bool) Option + func DisabledReadonlySignal(sig state.ReadonlySignal[bool]) Option + func DisabledSignal(sig state.Signal[bool]) Option + func Gap(g float32) Option + func ItemCount(n int) Option + func ItemCountFn(fn func() int) Option + func ItemCountReadonlySignal(sig state.ReadonlySignal[int]) Option + func ItemCountSignal(sig state.Signal[int]) Option + func ItemSize(width, height float32) Option + func OnCellClick(fn func(index int)) Option + func OnScroll(fn func(offset float32)) Option + func OnSelectionChange(fn func(index int)) Option + func PainterOpt(p Painter) Option + func ScrollYSignal(sig state.Signal[float32]) Option + func SelectedIndex(index int) Option + func SelectedIndexReadonlySignal(sig state.ReadonlySignal[int]) Option + func SelectedIndexSignal(sig state.Signal[int]) Option + func SelectionModeOpt(mode SelectionMode) Option + type Painter interface + PaintCellBackground func(canvas widget.Canvas, state CellPaintState) + PaintEmptyState func(canvas widget.Canvas, bounds geometry.Rect) + PaintSelection func(canvas widget.Canvas, state CellPaintState) + type SelectionMode uint8 + const SelectionNone + const SelectionSingle + func (m SelectionMode) String() string + type Widget struct + func New(opts ...Option) *Widget + func (w *Widget) AccessibilityActions() []a11y.Action + func (w *Widget) AccessibilityHint() string + func (w *Widget) AccessibilityLabel() string + func (w *Widget) AccessibilityRole() a11y.Role + func (w *Widget) AccessibilityState() a11y.State + func (w *Widget) AccessibilityValue() string + func (w *Widget) Children() []widget.Widget + func (w *Widget) Draw(ctx widget.Context, canvas widget.Canvas) + func (w *Widget) Event(ctx widget.Context, e event.Event) bool + func (w *Widget) GetColumns() int + func (w *Widget) GetItemCount() int + func (w *Widget) InvalidateData() + func (w *Widget) IsFocusable() bool + func (w *Widget) Layout(ctx widget.Context, constraints geometry.Constraints) geometry.Size + func (w *Widget) Mount(ctx widget.Context) + func (w *Widget) ScrollToIndex(index int) + func (w *Widget) Unmount() + func (w *Widget) VisibleRange() (start, end int)