html

package
v0.0.0-...-8c11f49 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accordion

type Accordion struct {
	// contains filtered or unexported fields
}

func NewAccordion

func NewAccordion(id string) *Accordion

func (*Accordion) AddItem

func (r *Accordion) AddItem(item *AccordionItem) *Accordion

func (*Accordion) Build

func (r *Accordion) Build() string

type AccordionItem

type AccordionItem struct {
	// contains filtered or unexported fields
}

func HewAccordionItem

func HewAccordionItem(id, header string, body IELement) *AccordionItem

func (*AccordionItem) Build

func (r *AccordionItem) Build() string

type Attrs

type Attrs map[string]string

func (Attrs) String

func (r Attrs) String() string

type B

type B struct {
	// contains filtered or unexported fields
}

func NewB

func NewB(val string, attrs Attrs) *B

func (*B) Build

func (r *B) Build() string

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(title string) *Builder

func (*Builder) Add

func (r *Builder) Add(elems ...IELement) *Builder

func (*Builder) Build

func (r *Builder) Build() string

type Canvas

type Canvas struct {
	// contains filtered or unexported fields
}

func NewCanvas

func NewCanvas(id string) *Canvas

func (*Canvas) Build

func (r *Canvas) Build() string

type Div

type Div struct {
	// contains filtered or unexported fields
}

func NewContainer

func NewContainer() *Div

func NewDiv

func NewDiv(class string) *Div

func (*Div) Add

func (r *Div) Add(elems ...IELement) *Div

func (*Div) Build

func (r *Div) Build() string

type H

type H struct {
	// contains filtered or unexported fields
}

func NewH

func NewH(value string, size int, attrs Attrs) *H

func (*H) Build

func (r *H) Build() string

type I

type I struct {
	// contains filtered or unexported fields
}

func NewI

func NewI(val string, attrs Attrs) *I

func (*I) Build

func (r *I) Build() string

type IELement

type IELement interface {
	Build() string
}

type S

type S struct {
	// contains filtered or unexported fields
}

func NewNbsp

func NewNbsp() *S

func NewS

func NewS(val string) *S

func (*S) Build

func (r *S) Build() string

type Script

type Script struct {
	// contains filtered or unexported fields
}

func NewScript

func NewScript(url string) *Script

func (*Script) Build

func (r *Script) Build() string

type Span

type Span struct {
	// contains filtered or unexported fields
}

func NewSpan

func NewSpan(elements ...IELement) *Span

func (*Span) Build

func (r *Span) Build() string

type Table

type Table struct {
	// contains filtered or unexported fields
}

func NewTable

func NewTable(header []string) *Table

func (*Table) AddFooterElement

func (r *Table) AddFooterElement(elem IELement) *Table

func (*Table) AddRow

func (r *Table) AddRow(row *Tr) *Table

func (*Table) Build

func (r *Table) Build() string

type Td

type Td struct {
	// contains filtered or unexported fields
}

func NewTd

func NewTd(val IELement, attrs Attrs) *Td

func (*Td) Build

func (r *Td) Build() string

type Tr

type Tr struct {
	// contains filtered or unexported fields
}

func NewTr

func NewTr(attr Attrs) *Tr

func (*Tr) AddTd

func (r *Tr) AddTd(td *Td) *Tr

func (*Tr) Build

func (r *Tr) Build() string

Jump to

Keyboard shortcuts

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