20 lines
496 B
Go
20 lines
496 B
Go
package components
|
|
|
|
type ContentTable struct {
|
|
ID string
|
|
TableClass string // table-primary, table-secondary,.. table-striped table-bordered
|
|
HeadClass string // table-dark table-light
|
|
AllTH []ContentTableTH
|
|
AllTD [][]ContentTableTD
|
|
}
|
|
|
|
type ContentTableTH struct {
|
|
ID string
|
|
ValueType string // -> default string, href, badge
|
|
Value string
|
|
}
|
|
|
|
type ContentTableTD struct {
|
|
ID string
|
|
Value interface{} // string or component struct according ValueType
|
|
}
|