table

package
v0.0.0-...-583b476 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

package table implements a simple table widget.

At present Fyne does not have it's own native table widget. This one intends to bridge the gap until a better one is available.

Current limitations:

  • Not very pretty
  • No re-sizing
  • No editing cell contents
  • Very inefficient (re-generates all table cells each time the widget is refreshed)
  • No sorting

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TableWidget

type TableWidget struct {
	widget.BaseWidget
	// contains filtered or unexported fields
}

func NewTableWidget

func NewTableWidget(df *dataframe.DataFrame) *TableWidget

func (*TableWidget) CalculateColumnWidths

func (table *TableWidget) CalculateColumnWidths(maxWidth int)

CalculateColumnWidths will replace t.columnWidths with appropriate widths that accommodate the full string ivied content of the largest element in a column. maxWidth is the widest that any single column can be. Specify a maxWidth of 0 for an unlimited maximum width.

func (*TableWidget) CreateRenderer

func (table *TableWidget) CreateRenderer() fyne.WidgetRenderer

func (*TableWidget) ReplaceDataFrame

func (table *TableWidget) ReplaceDataFrame(newdf *dataframe.DataFrame)

func (*TableWidget) Tapped

func (table *TableWidget) Tapped(ev *fyne.PointEvent)

func (*TableWidget) TappedSecondary

func (table *TableWidget) TappedSecondary(ev *fyne.PointEvent)

Jump to

Keyboard shortcuts

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