Documentation
¶
Index ¶
- type Model
- func (t *Model) AppendRow(row *Row)
- func (t *Model) AppendRows(rows ...*Row)
- func (t *Model) Empty() bool
- func (t *Model) GetAlignedRows() string
- func (t *Model) GetAllRowsofHeading(heading string) []*Row
- func (t *Model) GetCopyOfHeadings() []Row
- func (t *Model) GetCopyOfRowsWithoutHeadings() []Row
- func (t *Model) GetPlainHeadings() []string
- func (t *Model) GetPlainRowsWithoutHeadings() []string
- func (t *Model) Join(table *Model)
- func (t *Model) Render() string
- func (t *Model) Reset()
- type Row
- type RowStyles
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
func (*Model) AppendRows ¶
func (*Model) GetAlignedRows ¶
Helper functions for retrieving specific rows in a table Aligned but unstyled rows
func (*Model) GetAllRowsofHeading ¶
func (*Model) GetCopyOfHeadings ¶
func (*Model) GetCopyOfRowsWithoutHeadings ¶
func (*Model) GetPlainHeadings ¶
func (*Model) GetPlainRowsWithoutHeadings ¶
type Row ¶
type Row struct {
Text string
Key string
Prefix string
PrefixSep string
// default false unless prefix defined
ShowPrefix bool
// only used to show row's corresponding heading during filtering
Heading string
MatchedIndex []int
Styles RowStyles
IsHeading bool
IsSelected bool
IsFiltered bool
Reversed bool
}
func NewHeading ¶
func (*Row) ReverseString ¶
Click to show internal directories.
Click to hide internal directories.