tablas
This commit is contained in:
parent
eec9697a71
commit
65f7715b05
7 changed files with 242 additions and 3 deletions
|
|
@ -17,6 +17,29 @@ type TablerMenuItem struct {
|
|||
// TablerMenu is a map of menu sections keyed by identifier
|
||||
type TablerMenu map[string]*TablerMenuItem
|
||||
|
||||
// TableHeader represents a column header
|
||||
type TableHeader struct {
|
||||
Name string
|
||||
Sort string
|
||||
Width string
|
||||
}
|
||||
|
||||
// TableRow represents a single row of mock data
|
||||
type TableRow struct {
|
||||
ID string
|
||||
Name string
|
||||
AvatarID string
|
||||
Email string
|
||||
City string
|
||||
Country string
|
||||
Status string
|
||||
JobTitle string
|
||||
Department string
|
||||
Date string
|
||||
Tags []string
|
||||
Category string
|
||||
}
|
||||
|
||||
// TablerPageData holds the common data for all tabler pages
|
||||
type TablerPageData struct {
|
||||
PageTitle string
|
||||
|
|
@ -37,4 +60,8 @@ type TablerPageData struct {
|
|||
UserRole string
|
||||
NavbarMenu TablerMenu
|
||||
CurrentPage string
|
||||
// Table data
|
||||
TableHeaders []TableHeader
|
||||
TableRows []TableRow
|
||||
PerPageOptions []string
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue