1
0
Fork 0
forked from goffee/core
core/template/components/content_table.go

21 lines
496 B
Go
Raw Normal View History

2024-10-14 13:13:51 -04:00
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
2024-10-14 13:13:51 -04:00
}
type ContentTableTH struct {
ID string
ValueType string // -> default string, href, badge
Value string
2024-10-14 13:13:51 -04:00
}
type ContentTableTD struct {
ID string
Value interface{} // string or component struct according ValueType
2024-10-14 13:13:51 -04:00
}