headertable

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: GPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSortingLabel

func NewSortingLabel(text string) *sortingLabel

Types

type ColAttr

type ColAttr struct {
	Alignment    fyne.TextAlign
	Header       string
	Name         string
	TextStyle    fyne.TextStyle
	WidthPercent int
	Wrapping     fyne.TextWrap
}
type Header struct {
	widget.Table
}

type HeaderTable

type HeaderTable struct {
	widget.BaseWidget
	TableOpts *TableOpts
	Header    *widget.Table
	Data      *widget.Table
}

func NewHeaderTable

func NewHeaderTable(tableOpts *TableOpts) *HeaderTable

func (*HeaderTable) CreateRenderer

func (h *HeaderTable) CreateRenderer() fyne.WidgetRenderer

type SortFn

type SortFn func(ascending bool)

type SortState

type SortState int
const (
	SortUnsorted SortState = iota
	SortAscending
	SortDescending
)

type SortingHeaderTable

type SortingHeaderTable struct {
	widget.BaseWidget
	TableOpts *TableOpts
	Header    *widget.Table
	Data      *widget.Table
	// contains filtered or unexported fields
}

func NewSortingHeaderTable

func NewSortingHeaderTable(tableOpts *TableOpts) *SortingHeaderTable

func (*SortingHeaderTable) CreateRenderer

func (h *SortingHeaderTable) CreateRenderer() fyne.WidgetRenderer

type TableOpts

type TableOpts struct {
	Bindings         []binding.DataMap
	ColAttrs         []ColAttr
	OnDataCellSelect func(cellID widget.TableCellID)
	RefWidth         string
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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