Documentation ¶
Index ¶
- type ArchiveList
- func (a *ArchiveList) AddRows(archives *model.ChesscomArchives)
- func (a *ArchiveList) AtLeastOneSelected() bool
- func (a *ArchiveList) GetSelectedArchives() model.ChesscomArchives
- func (a *ArchiveList) IsNil() bool
- func (a *ArchiveList) Layout(gtx layout.Context) layout.Dimensions
- func (a *ArchiveList) ResetList()
- func (a *ArchiveList) Size() int
- type ArchiveRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveList ¶
type ArchiveList struct {
// contains filtered or unexported fields
}
ArchiveList is a collection of ArchiveRow that can be layout
func NewArchiveList ¶
func NewArchiveList(th *material.Theme) *ArchiveList
func (*ArchiveList) AddRows ¶
func (a *ArchiveList) AddRows(archives *model.ChesscomArchives)
AddRows adds one or more rows to the list
func (*ArchiveList) AtLeastOneSelected ¶
func (a *ArchiveList) AtLeastOneSelected() bool
AtLeastOneSelected returns true if at least one element is selected, false otherwise
func (*ArchiveList) GetSelectedArchives ¶
func (a *ArchiveList) GetSelectedArchives() model.ChesscomArchives
func (*ArchiveList) IsNil ¶
func (a *ArchiveList) IsNil() bool
func (*ArchiveList) Layout ¶
func (a *ArchiveList) Layout(gtx layout.Context) layout.Dimensions
func (*ArchiveList) ResetList ¶
func (a *ArchiveList) ResetList()
func (*ArchiveList) Size ¶
func (a *ArchiveList) Size() int
type ArchiveRow ¶
type ArchiveRow struct { widget.Clickable Archive model.ChesscomArchive // contains filtered or unexported fields }
ArchiveRow is a struct representing an archive with a checkbox. The entire widget is clickable and check the inner checkbox.
func NewArchiveRow ¶
func NewArchiveRow(th *material.Theme, archive model.ChesscomArchive) *ArchiveRow
func (*ArchiveRow) Layout ¶
func (a *ArchiveRow) Layout(gtx layout.Context) layout.Dimensions
Click to show internal directories.
Click to hide internal directories.