fieldtype

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checkbox

func Checkbox(row entity.Config) templ.Component

Checkbox renders a boolean. The hidden "false" input ensures an unchecked box still posts a value (browsers skip unchecked checkboxes).

func Color

func Color(row entity.Config) templ.Component

Color pairs the native picker with a mirrored hex text field so admins can copy/paste values as well as pick them.

func Date

func Date(row entity.Config) templ.Component

func Datetime

func Datetime(row entity.Config) templ.Component
func Dropdown(row entity.Config) templ.Component

func Email

func Email(row entity.Config) templ.Component

func KVList added in v0.5.4

func KVList(row entity.Config) templ.Component

KVList renders an editable multi-row table widget. Options holds pipe-separated column names (e.g. "id|name"); Value is a JSON array of string-keyed objects: [{"id":"1","name":"Sales Report"},...]. The hidden input named "value" is serialized to JSON on submit.

func KVListSummary added in v0.5.4

func KVListSummary(v entity.Config) string

KVListSummary returns a compact human-readable summary of a kvlist value: "N entries: col1:col2, ..." (first 3 rows, then "+N more").

func Number

func Number(row entity.Config) templ.Component

func Secret

func Secret(row entity.Config) templ.Component

Secret masks the stored value and never pre-fills the input. To keep the current value, the admin cancels; to rotate it, they type a new one.

func Text

func Text(row entity.Config) templ.Component

Text renders a plain single-line text input.

func Textarea

func Textarea(row entity.Config) templ.Component

func URL

func URL(row entity.Config) templ.Component

Types

This section is empty.

Jump to

Keyboard shortcuts

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