psmlmodel

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	*table.SimpleModel
	// contains filtered or unexported fields
}

Model is a table model that provides a widget that will render in one row only when not selected.

func New

func (*Model) CellWidget

func (c *Model) CellWidget(i int, s string) gowid.IWidget

Provides the ith "cell" widget, upstream makes the "row"

This is table.SimpleCellWidget with elided in place of gowid's text widget. A column too narrow for its value used to just stop drawing, so 192.0.2.10 in an eighty-column terminal read as 192.0.2.1 - a different address, just as valid, with nothing to say a digit was missing. elided ends a cut value with a marker instead. It only does so for the rows expander draws in a single line; the focused row is still shown in full.

func (*Model) CellWidgets

func (c *Model) CellWidgets(row table.RowId) []gowid.IWidget

func (*Model) HeaderWidget

func (c *Model) HeaderWidget(ws []gowid.IWidget, focus int) gowid.IWidget

table.ITable2

func (*Model) HeaderWidgets

func (c *Model) HeaderWidgets() []gowid.IWidget

Jump to

Keyboard shortcuts

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