alerts, toast amd breadcrum
This commit is contained in:
parent
aa651083cd
commit
1f95f86829
12 changed files with 525 additions and 1 deletions
|
|
@ -69,6 +69,31 @@ func TablerNavbar(c *core.Context) *core.Response {
|
|||
return c.Response.Template("tabler_default.html", data)
|
||||
}
|
||||
|
||||
// TablerComponents renders a page with alerts, breadcrumbs, and toasts.
|
||||
// Uses the composition pattern: embeds TablerPageData and adds Components.
|
||||
func TablerComponents(c *core.Context) *core.Response {
|
||||
type componentsPageData struct {
|
||||
TablerPageData
|
||||
Components FormtablerComponentsPage
|
||||
}
|
||||
data := componentsPageData{
|
||||
TablerPageData: TablerPageData{
|
||||
PageTitle: "UI Components",
|
||||
PageDescription: "Alerts, breadcrumbs and toasts demo",
|
||||
ShowTopbar: true,
|
||||
Sidebar: false,
|
||||
PageHeader: "Components",
|
||||
PagePretitle: "UI Elements",
|
||||
UserName: "Jane Doe",
|
||||
UserRole: "Administrator",
|
||||
NavbarMenu: SampleNavbarMenu(),
|
||||
Content: template.HTML(""),
|
||||
},
|
||||
Components: SampleComponents(),
|
||||
}
|
||||
return c.Response.Template("tabler_components.html", data)
|
||||
}
|
||||
|
||||
// TablerCards renders a page with card component demos.
|
||||
// Uses the composition pattern: embeds TablerPageData and adds Cards.
|
||||
func TablerCards(c *core.Context) *core.Response {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue