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 ¶
- type TableWidget
- func (table *TableWidget) CalculateColumnWidths(maxWidth int)
- func (table *TableWidget) CreateRenderer() fyne.WidgetRenderer
- func (table *TableWidget) ReplaceDataFrame(newdf *dataframe.DataFrame)
- func (table *TableWidget) Tapped(ev *fyne.PointEvent)
- func (table *TableWidget) TappedSecondary(ev *fyne.PointEvent)
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)
Click to show internal directories.
Click to hide internal directories.