Documentation
¶
Index ¶
- Variables
- func A(name string) func(...ApplyToElement) func(...Appendable) Element
- func CreateEffect(function func())
- func CreateSignal[T any](defaultValue T) (func() T, func(T))
- type Appendable
- type ApplyToElement
- type Attribute
- type Document
- type Element
- type EventCallBack
- type ForStruct
- type Signal
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func A ¶
func A(name string) func(...ApplyToElement) func(...Appendable) Element
func CreateEffect ¶
func CreateEffect(function func())
func CreateSignal ¶
func CreateSignal[T any](defaultValue T) (func() T, func(T))
Types ¶
type Appendable ¶
type Appendable interface {
AppendTo(Element)
}
type ApplyToElement ¶
type ApplyToElement interface {
Apply(Element)
}
type Element ¶
func (Element) AddEventListener ¶
func (Element) AppendChild ¶
func (Element) SetAttribute ¶
func (Element) SetInnerText ¶
type EventCallBack ¶
type EventCallBack struct { Name string Callback func() }
func On ¶
func On(event string, callback func()) EventCallBack
func (EventCallBack) Apply ¶
func (event EventCallBack) Apply(element Element)
type ForStruct ¶
type ForStruct[T comparable] struct { Collection func() []T Render func(T) Element }
Click to show internal directories.
Click to hide internal directories.