container

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Tag feature.Tag = "njn-fields-container"
)

Variables

View Source
var (
	TagNames = []string{
		"div", "dl", "dt", "dd", "samp", "blockquote",
	}
)

Functions

This section is empty.

Types

type CField

type CField struct {
	feature.CEnjinField
	// contains filtered or unexported fields
}

func (*CField) AddTag

func (f *CField) AddTag(name string) MakeField

func (*CField) Defaults

func (f *CField) Defaults() MakeField

func (*CField) Init

func (f *CField) Init(this interface{})

func (*CField) Make

func (f *CField) Make() Field

func (*CField) NjnClass

func (f *CField) NjnClass() (tagClass feature.NjnClass)

func (*CField) NjnFieldNames

func (f *CField) NjnFieldNames() (names []string)

func (*CField) PrepareNjnData

func (f *CField) PrepareNjnData(re feature.EnjinRenderer, tagName string, field map[string]interface{}) (data map[string]interface{}, err error)

func (*CField) RemoveTag

func (f *CField) RemoveTag(name string) MakeField

type Field

type Field interface {
	feature.EnjinField
}

type MakeField

type MakeField interface {
	AddTag(name string) MakeField
	RemoveTag(name string) MakeField

	Defaults() MakeField

	Make() Field
}

func New

func New() (field MakeField)

Jump to

Keyboard shortcuts

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