reference

package
v0.0.0-...-4de3c4e Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package reference is a Ponzu addon to enable content editors to create references to other content types which are stored as query strings within the referencer's content DB

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Select

func Select(fieldName string, p interface{}, attrs map[string]string, contentType, tmplString string) []byte

Select returns the []byte of a <select> HTML element plus internal <options> with a label. IMPORTANT: The `fieldName` argument will cause a panic if it is not exactly the string form of the struct field that this editor input is representing

func SelectRepeater

func SelectRepeater(fieldName string, p interface{}, attrs map[string]string, contentType, tmplString string) []byte

SelectRepeater returns the []byte of a <select> HTML element plus internal <options> with a label. It also includes repeat controllers (+ / -) so the element can be dynamically multiplied or reduced. IMPORTANT: The `fieldName` argument will cause a panic if it is not exactly the string form of the struct field that this editor input is representing

Types

This section is empty.

Jump to

Keyboard shortcuts

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