html

package
v0.0.0-...-0d6871a Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InputBool

type InputBool struct {
	ID      string
	Label   string
	Rows    int
	Value   bool
	InfoMsg string
}

func (*InputBool) Render

func (i *InputBool) Render(ctx context.Context, w io.Writer)

type InputRadio

type InputRadio struct {
	ID       string
	Label    string
	Options  [][2]string
	Value    string
	InfoMsg  string
	Required bool
}

func (*InputRadio) Render

func (i *InputRadio) Render(ctx context.Context, w io.Writer)

type InputString

type InputString struct {
	ID            string
	Label         string
	Size          string // int
	Value         string
	Validation    string
	ValidationMsg string
	Required      bool
}

func (*InputString) Render

func (i *InputString) Render(ctx context.Context, w io.Writer)

type InputText

type InputText struct {
	ID       string
	Label    string
	Rows     int
	Value    string
	InfoMsg  string
	Required bool
}

func (*InputText) Render

func (i *InputText) Render(ctx context.Context, w io.Writer)

type Page

type Page struct {
	Title string
	Lang  language.Tag
	Path  string
}

type SearchSelect

type SearchSelect struct {
	ID        string
	Label     string
	Options   [][2]string
	URIPrefix string
	Value     string
	Values    []string
	InfoMsg   string
	Multiple  bool
	Required  bool
}

func (*SearchSelect) Render

func (i *SearchSelect) Render(ctx context.Context, w io.Writer)

type TablePaginated

type TablePaginated struct {
	ID        string
	Class     string
	SortBy    string
	SortDir   string
	Target    string
	PrevLabel string
	NextLabel string
	HasMore   bool
	Offset    int
	Limit     int
	Yield     func()
}

func (*TablePaginated) Render

func (t *TablePaginated) Render(ctx context.Context, w io.Writer)

Jump to

Keyboard shortcuts

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