Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
a173e30090
|
|||
a3481a7d2d
|
|||
a8e6f98a89
|
@@ -1,5 +1,5 @@
|
|||||||
package goext
|
package goext
|
||||||
|
|
||||||
const GoextVersion = "0.0.500"
|
const GoextVersion = "0.0.503"
|
||||||
|
|
||||||
const GoextVersionTimestamp = "2024-08-07T19:30:38+0200"
|
const GoextVersionTimestamp = "2024-08-07T19:37:38+0200"
|
||||||
|
@@ -53,8 +53,8 @@ func (b *TableBuilder) Widths(v ...string) *TableBuilder {
|
|||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *TableBuilder) DefaultStyle(s TableCellStyleOpt) *TableBuilder {
|
func (b *TableBuilder) DefaultStyle(s *TableCellStyleOpt) *TableBuilder {
|
||||||
b.defaultCellStyle = &s
|
b.defaultCellStyle = s
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -20,6 +20,10 @@ type TableCellStyleOpt struct {
|
|||||||
PDFCellOpt
|
PDFCellOpt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func NewTableCellStyleOpt() *TableCellStyleOpt {
|
||||||
|
return &TableCellStyleOpt{}
|
||||||
|
}
|
||||||
|
|
||||||
func (o *TableCellStyleOpt) FillHeight(b bool) *TableCellStyleOpt {
|
func (o *TableCellStyleOpt) FillHeight(b bool) *TableCellStyleOpt {
|
||||||
o.fillHeight = &b
|
o.fillHeight = &b
|
||||||
return o
|
return o
|
||||||
|
@@ -41,8 +41,8 @@ func (r *TableRowBuilder) CellObjects(cells ...TableCell) *TableRowBuilder {
|
|||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *TableRowBuilder) CellWithStyle(cell string, style TableCellStyleOpt) *TableRowBuilder {
|
func (r *TableRowBuilder) CellWithStyle(cell string, style *TableCellStyleOpt) *TableRowBuilder {
|
||||||
r.cells = append(r.cells, TableCell{Content: cell, Style: style})
|
r.cells = append(r.cells, TableCell{Content: cell, Style: *style})
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user