components

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action added in v0.0.18

type Action struct {
	Name    string
	ID      int
	UUID    string
	Content string
}

func (*Action) GetContent added in v0.0.18

func (c *Action) GetContent() template.HTML

type App added in v0.0.9

type App struct {
	Name string
	Icon string
	Text string
	URL  string
}

func (*App) GetContent added in v0.0.9

func (c *App) GetContent() template.HTML

type Audio

type Audio struct {
	Name string
	URL  string
}

func (*Audio) GetContent

func (c *Audio) GetContent() template.HTML

type CodeEditor added in v0.0.15

type CodeEditor struct {
	Name string
}

func (*CodeEditor) GetContent added in v0.0.15

func (c *CodeEditor) GetContent() template.HTML

type Component

type Component interface {
	GetContent() template.HTML
}

type File

type File struct {
	Name string
	URL  string
}

func (*File) GetContent

func (c *File) GetContent() template.HTML

type Form added in v0.0.9

type Form struct {
	Name   string
	Action string
	Method string
	Inputs []Component
}

func (*Form) GetContent added in v0.0.9

func (c *Form) GetContent() template.HTML

type Html

type Html struct {
	Name          string
	Title         string
	UseIcon       bool
	UseCodeEditor bool
	Page          Component
	// contains filtered or unexported fields
}

func (*Html) GetContent

func (c *Html) GetContent() template.HTML

func (*Html) SetCss

func (c *Html) SetCss(css template.CSS)

func (*Html) SetJs

func (c *Html) SetJs(js template.JS)

type Image

type Image struct {
	Name string
	URL  string
}

func (*Image) GetContent

func (c *Image) GetContent() template.HTML

type Input added in v0.0.9

type Input struct {
	Name  string
	Title string
	Type  string
	Value string
}

func (*Input) GetContent added in v0.0.9

func (c *Input) GetContent() template.HTML
type Link struct {
	Name  string
	Title string
	URL   string
}

func (*Link) GetContent

func (c *Link) GetContent() template.HTML

type LinkButton added in v0.0.11

type LinkButton struct {
	Name  string
	Title string
	URL   string
}

func (*LinkButton) GetContent added in v0.0.11

func (c *LinkButton) GetContent() template.HTML

type List

type List struct {
	Items []Component
}

func (*List) GetContent

func (c *List) GetContent() template.HTML

type Location

type Location struct {
	Name string
	URL  string
}

func (*Location) GetContent

func (c *Location) GetContent() template.HTML

type Memo added in v0.0.9

type Memo struct {
	Name    string
	Time    string
	Content Component
	Tags    []string
}

func (*Memo) GetContent added in v0.0.9

func (c *Memo) GetContent() template.HTML

type Page

type Page struct {
	Title   string
	Action  Component
	Content Component
}

func (*Page) GetContent

func (c *Page) GetContent() template.HTML

type Script

type Script struct {
	Name    string
	ID      int
	UUID    string
	Content string
}

func (*Script) GetContent

func (c *Script) GetContent() template.HTML

type Select added in v0.0.13

type Select struct {
	Name  string
	Title string
	Value map[string]string
}

func (*Select) GetContent added in v0.0.13

func (c *Select) GetContent() template.HTML

type Text

type Text struct {
	Name  string
	Title string
}

func (*Text) GetContent

func (c *Text) GetContent() template.HTML

type Video

type Video struct {
	Name string
	URL  string
}

func (*Video) GetContent

func (c *Video) GetContent() template.HTML

Jump to

Keyboard shortcuts

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