table

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package table wraps Bootstrap default Table Content.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Table

type Table struct {
	*bs.Component
	// contains filtered or unexported fields
}

Table represents Bootstrap table content.

func Attach

func Attach(id string) *Table

Attach binds a Bootstrap table on page.

func New

func New(head []interface{}, data [][]interface{}) *Table

New returns a table with headers and data.

func (*Table) Add

func (t *Table) Add(idx interface{}, data []interface{}) *Table

Add adds data to table.

func (*Table) Caption

func (t *Table) Caption(x interface{}) *Table

Caption add or replace caption.

func (*Table) Cell

func (t *Table) Cell(row, col int) *bs.Component

Cell return (row, col) cell in tbody. row and col are 0-index.

func (*Table) Head

func (t *Table) Head(idx int) *bs.Component

Head return n-th head cell. idx is 0-index.

func (*Table) SetCell

func (t *Table) SetCell(row, col int, content ...interface{}) *Table

SetCell reset new content to some cell.

Jump to

Keyboard shortcuts

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