partials

package
v0.0.0-...-08d4495 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BookSearchResults

func BookSearchResults(page page.Page[dusk.Book], filters filters.Base, err error) templ.Component

func BookSearchResultsWithOOB

func BookSearchResultsWithOOB(page page.Page[dusk.Book], filters filters.Base, err error) templ.Component

partial with OOB swaps to handle sort direction, filters, view mode etc.

func BreadCrumb(b BreadcrumbGroup) templ.Component

func DefaultError

func DefaultError() templ.Component

func Empty

func Empty() templ.Component

func Error

func Error(err error) templ.Component

func ErrorFromRaw

func ErrorFromRaw() templ.Component

func ErrorFromString

func ErrorFromString(message string) templ.Component

func HtmxError

func HtmxError() templ.Component

func ItemSearch

func ItemSearch(path, target string, filters filters.Base) templ.Component

func ItemSearchResults

func ItemSearchResults[T any](page page.Page[T], path, target string, err error) templ.Component

func Library

func Library(page page.Page[dusk.Book], filters filters.Base, err error) templ.Component

func ModalButton

func ModalButton(attrs templ.Attributes) templ.Component

func ModalDialog

func ModalDialog() templ.Component

func NotFound

func NotFound() templ.Component
func Sidebar(revision string) templ.Component

func Table

func Table(page page.Page[dusk.Book]) templ.Component

func Tabs

func Tabs(t TabGroup, defaultTab string) templ.Component

func ToastInfo

func ToastInfo(title, message string) templ.Component

func ToastOOBSwap

func ToastOOBSwap() templ.Component

func ToastRawInfo

func ToastRawInfo(title, message string) templ.Component

Types

type BreadcrumbGroup struct {
	Current string
	Order   []string
	LinkMap map[string]string
}

type Tab

type Tab struct {
	Name      string
	Link      string
	Component templ.Component
}

type TabGroup

type TabGroup struct {
	RootPath string
	Tabs     []Tab

	// order of tabs in tab group by link
	Order []string
}

func (TabGroup) Select

func (t TabGroup) Select(selected string) templ.Component

Select tab from tab group and render component

Directories

Path Synopsis
templ: version: v0.3.943
templ: version: v0.3.943

Jump to

Keyboard shortcuts

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