partials

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

templ: version: v0.3.960

templ: version: v0.3.960

templ: version: v0.3.960

templ: version: v0.3.960

templ: version: v0.3.960

templ: version: v0.3.960

templ: version: v0.3.960

templ: version: v0.3.960

templ: version: v0.3.960

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddressResults

func AddressResults(addresses []string) templ.Component

func Alerts

func Alerts() templ.Component
func Footer() templ.Component
func Head() templ.Component
func Header() templ.Component

func Language

func Language() templ.Component

func Page

func Page(options *PageOptions) templ.Component

func PreferredAverageSpeedMetric

func PreferredAverageSpeedMetric(w *database.Workout, preferredUnits *database.UserPreferredUnits) templ.Component

func PreferredSpeedMetric

func PreferredSpeedMetric(wt *database.WorkoutType, v float64, preferredUnits *database.UserPreferredUnits) templ.Component

func SnippetDate

func SnippetDate(date time.Time) templ.Component

func TabbedContent added in v2.5.0

func TabbedContent(groupName string, tabs ...Tab) templ.Component

func Theme

func Theme() templ.Component

func Version

func Version() templ.Component

Types

type PageOptions

type PageOptions struct {
	Scripts, Styles []string
}

func NewPageOptions

func NewPageOptions() *PageOptions

func (*PageOptions) WithScripts

func (o *PageOptions) WithScripts(scripts ...string) *PageOptions

func (*PageOptions) WithSharing

func (o *PageOptions) WithSharing() *PageOptions

func (*PageOptions) WithStyles

func (o *PageOptions) WithStyles(styles ...string) *PageOptions

func (*PageOptions) WithWebComponent added in v2.5.0

func (o *PageOptions) WithWebComponent(name string) *PageOptions

type Tab added in v2.5.0

type Tab struct {
	ID          string
	Icon        string
	Name        string
	Content     string
	Show        bool
	NoPrint     bool
	ContentFunc func() templ.Component
	// contains filtered or unexported fields
}

func (*Tab) GetContent added in v2.5.0

func (t *Tab) GetContent() templ.Component

func (*Tab) GetID added in v2.5.0

func (t *Tab) GetID() string

Jump to

Keyboard shortcuts

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