headertable

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindingConverter added in v0.0.2

type BindingConverter func(interface{}) string

type CellStyle added in v0.0.2

type CellStyle struct {
	Alignment fyne.TextAlign
	TextStyle fyne.TextStyle
	Wrapping  fyne.TextWrap
}

type ColAttr

type ColAttr struct {
	Converter    BindingConverter
	DataStyle    CellStyle
	Header       string
	HeaderStyle  CellStyle
	Name         string
	WidthPercent int
}
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 SortingLabel added in v0.0.2

type SortingLabel struct {
	widget.BaseWidget
	State       SortState
	Label       *widget.Label
	Sorter      SortFn
	OnAfterSort func()
	Button      *widget.Button
	Col         int
}

func NewSortingLabel

func NewSortingLabel(text string) *SortingLabel

func (*SortingLabel) CreateRenderer added in v0.0.2

func (sl *SortingLabel) CreateRenderer() fyne.WidgetRenderer

func (*SortingLabel) OnTapped added in v0.0.2

func (s *SortingLabel) OnTapped()

func (*SortingLabel) SetState added in v0.0.2

func (s *SortingLabel) SetState(state SortState)

type TableOpts

type TableOpts struct {
	Bindings         []binding.Struct
	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