Input required, table (class, href, badge)

This commit is contained in:
Diana 2024-10-15 16:09:17 -05:00
parent f398ebb02d
commit 458ad520ca
6 changed files with 31 additions and 11 deletions

View file

@ -1,17 +1,20 @@
package components
type ContentTable struct {
ID string
AllTH []ContentTableTH
AllTD [][]ContentTableTD
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
Value string
ID string
ValueType string // -> default string, href, badge
Value string
}
type ContentTableTD struct {
ID string
Value string
Value interface{} // string or component struct according ValueType
}