import "fyne.io/fyne/v2/widget"
  

Usage

type TableSegment

  type TableSegment struct {
	// Headers holds the cells of the header row, or nil for a header-less table.
	Headers [][]RichTextSegment
	// Rows holds the body rows; each row is a slice of cells, each cell a slice of segments.
	Rows       [][][]RichTextSegment
	Alignments []fyne.TextAlign
}
  

TableSegment represents a table within a rich text widget.

Since: 2.8

func (*TableSegment) Inline

  func (t *TableSegment) Inline() bool
  

Inline returns false as a table is a full-width block element.

func (*TableSegment) Select

  func (t *TableSegment) Select(_, _ fyne.Position)
  

Select does nothing for a table.

func (*TableSegment) SelectedText

  func (t *TableSegment) SelectedText() string
  

SelectedText returns the table content as text.

func (*TableSegment) Textual

  func (t *TableSegment) Textual() string
  

Textual returns the table content as tab-separated, newline-delimited text.

func (*TableSegment) Unselect

  func (t *TableSegment) Unselect()
  

Unselect does nothing for a table.

func (*TableSegment) Update

  func (t *TableSegment) Update(fyne.CanvasObject)
  

Update does nothing; a table visual is rebuilt rather than updated.

func (*TableSegment) Visual

  func (t *TableSegment) Visual() fyne.CanvasObject
  

Visual returns a new grid laying out the table cells.