Documentation
¶
Overview ¶
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
Index ¶
- func Checkbox(row entity.Config) templ.Component
- func Color(row entity.Config) templ.Component
- func Date(row entity.Config) templ.Component
- func Datetime(row entity.Config) templ.Component
- func Dropdown(row entity.Config) templ.Component
- func Email(row entity.Config) templ.Component
- func KVList(row entity.Config) templ.Component
- func KVListSummary(v entity.Config) string
- func Number(row entity.Config) templ.Component
- func Secret(row entity.Config) templ.Component
- func Text(row entity.Config) templ.Component
- func Textarea(row entity.Config) templ.Component
- func URL(row entity.Config) templ.Component
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Checkbox ¶
Checkbox renders a boolean. The hidden "false" input ensures an unchecked box still posts a value (browsers skip unchecked checkboxes).
func Color ¶
Color pairs the native picker with a mirrored hex text field so admins can copy/paste values as well as pick them.
func KVList ¶ added in v0.5.4
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
KVListSummary returns a compact human-readable summary of a kvlist value: "N entries: col1:col2, ..." (first 3 rows, then "+N more").
func Secret ¶
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.
Types ¶
This section is empty.