render

package
v0.0.0-...-fca4db4 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

templ: version: v0.3.977

Code generated by scripts/gen_assets.sh; DO NOT EDIT.

templ: version: v0.3.977

Index

Constants

View Source
const (
	StyleHash    = "style.f39fe0c776d13ff8.css"
	TableJSHash  = "table.9f088e59066d2987.js"
	TanstackHash = "tanstack-table.esm.611d637e1af96e21.js"
)

Static asset filenames with content hashes for cache busting.

Variables

This section is empty.

Functions

func FilterGuide

func FilterGuide(fields []core.Field) templ.Component

Filter Syntax Guide

func FormatValue

func FormatValue(record *core.Record, column string) templ.Component

FormatValue renders the field value with appropriate formatting

func FormatValueWithCopy

func FormatValueWithCopy(record *core.Record, column string) templ.Component

FormatValueWithCopy renders the field value with a copy button

func InlineCopyButton

func InlineCopyButton(recordId string) templ.Component

Inline copy button for ID column - replaces dropdown with simple copy symbol

func LandingMarkdown

func LandingMarkdown(collections []string, prefix string) string

LandingMarkdown generates a markdown landing page with documentation.

func LandingPage

func LandingPage(collections []string, prefix string) string

LandingPage generates a simple landing page listing collections using Templ.

func LandingView

func LandingView(collections []string, prefix string) templ.Component

Landing Page Component

func Markdown

func Markdown(records []*core.Record, columns []string, params ServerParams) string

Markdown generates a markdown table from records.

func SingleRecordMarkdown

func SingleRecordMarkdown(record *core.Record, columns []string) string

SingleRecordMarkdown generates markdown for a single record.

func SortIcon

func SortIcon(direction string) templ.Component

Icon for sort

func Static

func Static(filename string) (content string, contentType string, err error)

Static returns the content and content-type for a static file.

func TablePage

func TablePage(collection string, records []*core.Record, columns []string, prefix, customCSS string, params ServerParams, fields []core.Field, seo SEOData) string

TablePage generates an interactive HTML table view using Templ.

func TableRow

func TableRow(record *core.Record, columns []string) templ.Component

func TableRowHTML

func TableRowHTML(record *core.Record, columns []string) string

TableRowHTML renders a single table row as HTML for realtime updates.

func TableView

func TableView(collection string, records []*core.Record, columns []string, prefix string, customCSS string, params ServerParams, fields []core.Field, seo SEOData) templ.Component

Main View Component

Types

type SEOData

type SEOData struct {
	Title        string
	Description  string
	Keywords     string
	OGImage      string
	CanonicalURL string
}

SEOData contains SEO-related metadata for pages

type ServerParams

type ServerParams struct {
	Filter  string
	Search  string
	Sort    string
	PerPage int
	Page    int
	Error   string
}

ServerParams holds the server-side query parameters applied to the view.

Jump to

Keyboard shortcuts

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