table

package
v0.0.0-...-34721a0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cell

type Cell any
type Header struct {
	Id   string
	Cell []Cell
}

func NewHeader

func NewHeader() *Header

func (*Header) AddCell

func (th *Header) AddCell(cell Cell) *Header

type Row

type Row struct {
	Id     string
	DataId string
	Cell   []Cell
}

func NewRow

func NewRow() *Row

func (*Row) AddCell

func (tr *Row) AddCell(cell Cell) *Row

func (*Row) SetDataId

func (tr *Row) SetDataId(id string) *Row

type Table

type Table struct {
	Id       string
	Header   *Header
	Rows     []*Row
	Checkbox bool
}

func New

func New() *Table

func (*Table) AddHeader

func (tab *Table) AddHeader(header *Header) *Table

func (*Table) AddRow

func (tab *Table) AddRow(row *Row) *Table

func (*Table) Generate

func (tab *Table) Generate() template.HTML

func (*Table) SetCheckbox

func (tab *Table) SetCheckbox(checkbox bool) *Table

Jump to

Keyboard shortcuts

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