components

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

templ: version: v0.3.960

templ: version: v0.3.960

templ: version: v0.3.960

templ: version: v0.3.960

templ: version: v0.3.960

templ: version: v0.3.960

templ: version: v0.3.960

Index

Constants

View Source
const HscriptOne string = `` /* 203-byte string literal not displayed */
View Source
const HscriptOneOrMore string = `` /* 201-byte string literal not displayed */

Variables

This section is empty.

Functions

func Button

func Button(config ButtonConfig) templ.Component

func CSRF

func CSRF() templ.Component

func Form

func Form(conf FormConf) templ.Component

func GetStatusClass

func GetStatusClass(status string) string

func InnerButton

func InnerButton(entry ButtonConfig, isMenuItem bool) templ.Component

func InnerButtonGet

func InnerButtonGet(entry ButtonConfig, isMenuItem bool) templ.Component

func InnerButtonPost

func InnerButtonPost(entry ButtonConfig, isMenuItem bool) templ.Component

func InputFile

func InputFile(id string, name string, label string, accept string, multiple bool) templ.Component

func InputSearch

func InputSearch(id string, value string, placeholder string, hxPost string) templ.Component

func JsonCodeView

func JsonCodeView(data interface{}) templ.Component

func LoadOrTrigger

func LoadOrTrigger(trigger *ComponentTrigger) templ.Component
func MenuEdit(mainButton ButtonConfig, buttonGroups ...[]ButtonConfig) templ.Component
func Popup(key string, zIndex int) templ.Component

func PopupError

func PopupError(title string, description string) templ.Component

func PopupHeaderError

func PopupHeaderError(title string) templ.Component

func PopupHeaderInfo

func PopupHeaderInfo(title string) templ.Component

func PopupHeaderSuccess

func PopupHeaderSuccess(title string) templ.Component

func PopupInfo

func PopupInfo(title string, description string) templ.Component

func PopupSuccess

func PopupSuccess(title string, description string) templ.Component

func Status

func Status(status string) templ.Component

func Table

func Table(id string, columns []model.KeyValuePair, rows []model.Mapper, withSelection bool) templ.Component

func TableFull

func TableFull(tableConfig *TableFullConfig) templ.Component

func TableHeader

func TableHeader(id string, columns []model.KeyValuePair, withSelection bool) templ.Component

func TableRow

func TableRow(columns []model.KeyValuePair, row model.Mapper, withSelection bool) templ.Component

func Topbar

func Topbar(name string, search templ.Component, menu templ.Component) templ.Component

Types

type ButtonColor

type ButtonColor string

Unified button colors for MenuEdit

const (
	BUTTON_RED     ButtonColor = "red"
	BUTTON_GREEN   ButtonColor = "green"
	BUTTON_YELLOW  ButtonColor = "yellow"
	BUTTON_PRIMARY ButtonColor = "primary"
)

type ButtonConfig

type ButtonConfig struct {
	ID        string
	Icon      string
	Name      string
	Type      string
	HxGet     string
	HxPost    string
	HxVals    string
	HxTrigger string
	Class     string
	Color     ButtonColor
	Hover     bool
	HScript   string
	Disabled  bool
}

type ComponentTrigger

type ComponentTrigger struct {
	ID           string
	Class        string
	ComponentUrl string
	Trigger      string
	WithCodeView bool
	WithLoading  bool
}

type FormConf

type FormConf struct {
	HxPost     string
	HxInclude  string
	HxVals     string
	HxEncoding string
	HScript    string
	Class      string
}

type TableFullConfig

type TableFullConfig struct {
	ID            string
	Name          string
	Trigger       string
	TriggerTarget string
	Selectable    bool
	// Topbar
	Topbar templ.Component
	// Table content
	Columns []model.KeyValuePair
	Rows    []model.Mapper
}

Jump to

Keyboard shortcuts

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