Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRowData ¶
func NewRowData(r *RowData, c *TableConfig)
Types ¶
type RowData ¶
type RowData struct {
Value []string
// contains filtered or unexported fields
}
func (*RowData) AddSubRowData ¶
func (r *RowData) AddSubRowData(subr *RowData, config *TableConfig)
func (*RowData) Draw ¶
func (r *RowData) Draw(sx float64, sy float64, minhigh float64, currentIndex int) (float64, bool, *RowData)
Draw sx, sy 表示该单元的标准起始位置 minhigh 表示父单元所需最小高度,用于父子单元高度一致 currentIndex 表示当前渲染的单元格序号 currentIndex 表示当前行数据的起始列号(从0开始) 返回这一行的最低高度,便于父格子高度调整 返回是否分页,便于父格子渲染 返回切分后的RowData,用于多次渲染
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
func NewTable ¶
func NewTable(config *TableConfig) *Table
func (*Table) AddRowData ¶
func (t *Table) AddRowData(r *RowData, config *TableConfig)
Click to show internal directories.
Click to hide internal directories.