view

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2025 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Create = crudl.View[_createPH]{
	Pos: createPH,

	Template: GetTemplate(createTemplate.Name()),
}
View Source
var Table = crudl.ListView[_listPH]{
	Pos: listPH,

	Template:     GetTemplate(listTemplate.Name()),
	ItemPos:      listPH.rows,
	ItemTemplate: GetTemplate(listItemTemplate.Name()),
}
View Source
var Update = crudl.View[_updatePH]{
	Pos: updatePH,

	Template: GetTemplate(updateTemplate.Name()),
}

Functions

func Content

func Content(inner ...any) *html.Element

func GetTemplate

func GetTemplate(name string) *templ.Template

func Layout

func Layout(title string, inner ...any) html.HTML
func Modal(inner ...any) *html.Element

func SaveTemplates

func SaveTemplates() error

func WrapInCard

func WrapInCard(title string, inner ...any) *html.Element

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL