bolt

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: GPL-3.0 Imports: 3 Imported by: 2

README

bolt-go

Simple functional component system for htmx projects in Go that uses builder pattern

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

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

func A

func A(href string, children ...*Element) *Element

func Button

func Button(text string) *Element

func Div

func Div(children ...*Element) *Element

func Form

func Form() *Element

func Fragment

func Fragment(children ...*Element) *Element

func H1

func H1(text string) *Element

func H2

func H2(text string) *Element

func H3

func H3(text string) *Element

func H4

func H4(text string) *Element

func H5

func H5(text string) *Element

func H6

func H6(text string) *Element

func Html

func Html(content string) *Element

func Img

func Img(src string) *Element

func Input

func Input(name string) *Element

func Label

func Label(text string) *Element

func NewElement

func NewElement(tag string) *Element

func None

func None() *Element

func P

func P(text string) *Element

func Section

func Section(children ...*Element) *Element

func Span

func Span(text string) *Element

func (*Element) Attr

func (e *Element) Attr(key string, value string) *Element

func (*Element) Boost

func (e *Element) Boost(boost ...bool) *Element

func (*Element) Children

func (e *Element) Children(elements ...*Element) *Element

func (*Element) Class

func (e *Element) Class(classes string) *Element

func (*Element) Confirm

func (e *Element) Confirm(prompt string) *Element

func (*Element) Delete

func (e *Element) Delete(url string) *Element

func (*Element) Get

func (e *Element) Get(url string) *Element

func (*Element) HasClass

func (e *Element) HasClass(class string) bool

func (*Element) Href

func (e *Element) Href(href string) *Element

func (*Element) Id

func (e *Element) Id(value string) *Element

func (*Element) Indicator

func (e *Element) Indicator(indicator string) *Element

func (*Element) Name

func (e *Element) Name(name string) *Element

func (*Element) OnClick

func (e *Element) OnClick(value string) *Element

func (*Element) Oob

func (e *Element) Oob(oob string) *Element

func (*Element) Patch

func (e *Element) Patch(url string) *Element

func (*Element) Placeholder

func (e *Element) Placeholder(placeholder string) *Element

func (*Element) Post

func (e *Element) Post(url string) *Element

func (*Element) PushUrl

func (e *Element) PushUrl(pushUrl ...bool) *Element

func (*Element) Put

func (e *Element) Put(url string) *Element

func (*Element) RemoveAttributes

func (e *Element) RemoveAttributes(keys ...string) *Element

func (*Element) RemoveClasses

func (e *Element) RemoveClasses(classes ...string) *Element

func (*Element) RemoveStyles

func (e *Element) RemoveStyles(styles ...string) *Element

func (*Element) Render

func (e *Element) Render() string

func (*Element) Src

func (e *Element) Src(src string) *Element

func (*Element) Style

func (e *Element) Style(styles string) *Element

func (*Element) Swap

func (e *Element) Swap(value string) *Element

func (*Element) SwapOob

func (e *Element) SwapOob(oob string) *Element

func (*Element) Target

func (e *Element) Target(target string) *Element

func (*Element) Text

func (e *Element) Text(content string) *Element

func (*Element) Trigger

func (e *Element) Trigger(trigger string) *Element

func (*Element) Type

func (e *Element) Type(tipe string) *Element

func (*Element) Value

func (e *Element) Value(value string) *Element

Jump to

Keyboard shortcuts

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