Documentation ¶
Overview ¶
templ: version: v0.2.793
templ: version: v0.2.793
templ: version: v0.2.793
templ: version: v0.2.793
templ: version: v0.2.793
Index ¶
- func Bool(props *Props) templ.Component
- func Component(rx *Context, value any, path Path) (out []templ.Component)
- func ListOf(obj any, property string) []string
- func ListenAndServe(port int, registry folio.Registry, db folio.Storage) error
- func Number(props *Props) templ.Component
- func Object(rx *Context, obj folio.Object) (out []templ.Component)
- func Range(props *Props, min, max, step float64) templ.Component
- func Select(props *Props, lookup Lookup) templ.Component
- func Slice(props *Props) templ.Component
- func String(props *Props) templ.Component
- func StringOf(obj any, property string) string
- func Strings(props *Props) templ.Component
- func Struct(props *Props, children []templ.Component) templ.Component
- func StructPtr(props *Props) templ.Component
- func TitleOf(obj any) string
- type ButtonDropdownProps
- type Context
- type Lookup
- type Mode
- type Path
- type Props
- type Renderer
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenAndServe ¶
ListenAndServe starts the server on the given port.
Types ¶
type ButtonDropdownProps ¶
type Context ¶
type Context struct { Mode Mode Path Path Kind folio.Kind Type folio.Type URN folio.URN Store folio.Storage Registry folio.Registry Query folio.Query Namespace string }
Context represents the rendering context.
type Lookup ¶
type Lookup interface { Init(*Props) bool Choices() iter.Seq2[string, string] Current() (string, string) Len() int }
Lookup represents a lookup for a field.
type Props ¶
type Props struct { *Context // Context of the editor Name Path // Name of the field (or the JSON tag) Label string // Label of the field, Title Case Desc string // Description of the field, used for placeholder & tooltip Value reflect.Value // Value of the field Parent folio.Object // Object to which the field belongs Field reflect.StructField // Field of the object }
Props represents the properties of the editor use to render the field.
Click to show internal directories.
Click to hide internal directories.