components

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClock

func NewClock() *golive.LiveComponent

func NewDynamicInput

func NewDynamicInput() *golive.LiveComponent

func NewForm

func NewForm() *golive.LiveComponent

func NewSlider

func NewSlider() *golive.LiveComponent

func NewTodo

func NewTodo() *golive.LiveComponent

Types

type Clock

type Clock struct {
	golive.LiveComponentWrapper
	ActualTime string
}

func (*Clock) Mounted

func (c *Clock) Mounted(l *golive.LiveComponent)

func (*Clock) TemplateHandler

func (c *Clock) TemplateHandler(_ *golive.LiveComponent) string

type DynamicInput

type DynamicInput struct {
	golive.LiveComponentWrapper
	Label string
}

func (*DynamicInput) TemplateHandler

func (d *DynamicInput) TemplateHandler(_ *golive.LiveComponent) string

type Form

type Form struct {
	golive.LiveComponentWrapper
	Label        string
	DynamicInput *golive.LiveComponent
}

func (*Form) TemplateHandler

func (d *Form) TemplateHandler(_ *golive.LiveComponent) string

type Slider

type Slider struct {
	golive.LiveComponentWrapper
	Size float32
}

func (*Slider) Size2

func (t *Slider) Size2() float32

func (*Slider) Size3

func (t *Slider) Size3() float32

func (*Slider) TemplateHandler

func (t *Slider) TemplateHandler(_ *golive.LiveComponent) string

type Task

type Task struct {
	Done bool
	Text string
}

func (*Task) GetClasses

func (t *Task) GetClasses() string

type Todo

type Todo struct {
	golive.LiveComponentWrapper
	Counter int
	Text    string
	Tasks   []Task
	Name    string
}

func (*Todo) CanAdd

func (t *Todo) CanAdd() bool

func (*Todo) HandleAdd

func (t *Todo) HandleAdd()

func (*Todo) IncreaseCounter

func (t *Todo) IncreaseCounter()

func (*Todo) TaskDone

func (t *Todo) TaskDone(index int)

func (*Todo) TemplateHandler

func (t *Todo) TemplateHandler(_ *golive.LiveComponent) string

Jump to

Keyboard shortcuts

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