templates

package
v1.0.42 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TemplateBodyCard

func TemplateBodyCard(props TemplateBodyCardProps) htmx.Node

TemplateBodyCard ...

func TemplateNewForm

func TemplateNewForm(props TemplateNewFormProps) htmx.Node

TemplateNewForm ...

func TemplateTitleCard added in v1.0.41

func TemplateTitleCard(props TemplateTitleCardProps) htmx.Node

TemplateTitleCard ...

func TemplatesTable

func TemplatesTable(props TemplatesTableProps, children ...htmx.Node) htmx.Node

TemplatesTable ...

Types

type TemplateBodyCardProps

type TemplateBodyCardProps struct {
	// ClassNames ...
	ClassNames htmx.ClassNames
	// Template ...
	Template models.Template
	// User ...
	User adapters.GothUser
}

TemplateBodyCardProps ...

type TemplateNewFormProps

type TemplateNewFormProps struct {
	ClassNames htmx.ClassNames
}

TemplateNewFormProps ...

type TemplateTitleCardProps added in v1.0.41

type TemplateTitleCardProps struct {
	ClassNames htmx.ClassNames
	Template   models.Template
	Markdown   string
}

TemplateTitleCardProps ...

type TemplatesTableProps

type TemplatesTableProps struct {
	URL       string
	Templates []*models.Template
	Offset    int
	Limit     int
	Total     int
}

TemplatesTableProps ...

Jump to

Keyboard shortcuts

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