fields

package
v0.0.0-...-1094846 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

templ: version: v0.3.857

templ: version: v0.3.857

templ: version: v0.3.857

templ: version: v0.3.857

templ: version: v0.3.857

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseField

type BaseField struct {
	Name        string
	Id          string
	Label       string
	Value       string
	Description string
	Required    bool
	NoWrap      bool
	MinLength   int
	MaxLength   int
}

func (*BaseField) Configure

func (f *BaseField) Configure()

type Button

type Button struct {
	BaseField
	Class     string
	Palette   style.PaletteClass
	Content   templ.Component
	Disabled  bool
	Type      string
	IconLeft  templ.Component
	IconRight templ.Component
}

func (*Button) Configure

func (b *Button) Configure()

func (Button) Display

func (b Button) Display() templ.Component

func (Button) GetBaseField

func (b Button) GetBaseField() BaseField

type Field

type Field interface {
	Configure()
	Display() templ.Component
	GetBaseField() BaseField
}

type Html

type Html struct {
	BaseField
	Html string
}

func (*Html) Configure

func (h *Html) Configure()

func (Html) Display

func (h Html) Display() templ.Component

func (Html) GetBaseField

func (h Html) GetBaseField() BaseField

type Input

type Input struct {
	BaseField
	Type        string
	PlaceHolder string
	IconRight   templ.Component
	IconLeft    templ.Component
}

func (*Input) Configure

func (i *Input) Configure()

func (Input) Display

func (i Input) Display() templ.Component

func (Input) GetBaseField

func (i Input) GetBaseField() BaseField

type Select

type Select struct {
	BaseField
	Options     []SelectOption
	PlaceHolder string
}

func (*Select) Configure

func (s *Select) Configure()

func (Select) Display

func (s Select) Display() templ.Component

func (Select) GetBaseField

func (s Select) GetBaseField() BaseField

type SelectOption

type SelectOption struct {
	Value string
	Label string
}

type TextArea

type TextArea struct {
	BaseField
	PlaceHolder string
}

func (*TextArea) Configure

func (t *TextArea) Configure()

func (TextArea) Display

func (t TextArea) Display() templ.Component

func (TextArea) GetBaseField

func (t TextArea) GetBaseField() BaseField

Jump to

Keyboard shortcuts

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