Documentation
¶
Index ¶
- type AVNode
- type ComputedT
- type DiffRenderer
- type Effect
- type Event
- type EventContext
- type Gettable
- type INode
- func Each[T any](src Gettable[[]T], renderOne func(index int, value T) INode) INode
- func EachMap[K comparable, T any](src Gettable[map[K]T], renderOne func(index K, value T) INode) INode
- func If(condition Gettable[bool], child INode) INode
- func Show(condition Gettable[bool], ifPath, elsePath INode) INode
- type InputVNode
- func (element *InputVNode) BindOnChange(signal Settable[string]) *InputVNode
- func (element *InputVNode) BindOnInput(signal Settable[string]) *InputVNode
- func (element *InputVNode) BindValue(signal Gettable[string]) *InputVNode
- func (e *InputVNode) Placeholder(v string) *InputVNode
- func (e *InputVNode) Type(v string) *InputVNode
- func (element *InputVNode) Value(t string) INode
- type NoopNode
- func (nop *NoopNode) Attribute(key, value string) INode
- func (nop *NoopNode) BindText(signal Gettable[string]) INode
- func (nop *NoopNode) Body(childs ...INode) INode
- func (nop *NoopNode) BodyList(childs []INode) INode
- func (nop *NoopNode) Class(classes ...string) INode
- func (nop *NoopNode) Id(id string) INode
- func (nop *NoopNode) On(event Event, handler func(ctx EventContext)) INode
- func (nop *NoopNode) OnClick(handler func(ctx EventContext)) INode
- func (nop *NoopNode) RemoveAttribute(key string) INode
- func (nop *NoopNode) RemoveClass(classes ...string) INode
- func (nop *NoopNode) RemoveStyle(key string) INode
- func (nop *NoopNode) Style(key, value string) INode
- func (nop *NoopNode) Text(t string) INode
- type Renderer
- type Settable
- type SignalT
- type StringRenderer
- type TextAreaNode
- type VNode
- func Article() *VNode
- func Aside() *VNode
- func Audio() *VNode
- func Br() *VNode
- func Button() *VNode
- func Canvas() *VNode
- func Code() *VNode
- func Div() *VNode
- func Em() *VNode
- func Footer() *VNode
- func Form() *VNode
- func H1() *VNode
- func H2() *VNode
- func H3() *VNode
- func H4() *VNode
- func H5() *VNode
- func H6() *VNode
- func Header() *VNode
- func Hr() *VNode
- func Img() *VNode
- func Label() *VNode
- func Li() *VNode
- func Main() *VNode
- func Nav() *VNode
- func New(element dom.Element) *VNode
- func NewFromId(id string) *VNode
- func NewFromIdWithRenderer(id string, renderer Renderer) *VNode
- func NewWithRenderer(element dom.Element, renderer Renderer) *VNode
- func NewWithoutMount(tag string, renderer Renderer) *VNode
- func Ol() *VNode
- func Option() *VNode
- func P() *VNode
- func Path() *VNode
- func Pre() *VNode
- func Section() *VNode
- func Select() *VNode
- func Small() *VNode
- func Source() *VNode
- func Span() *VNode
- func Strong() *VNode
- func Svg() *VNode
- func TBody() *VNode
- func TFoot() *VNode
- func THead() *VNode
- func Table() *VNode
- func Td() *VNode
- func Th() *VNode
- func Tr() *VNode
- func Ul() *VNode
- func Video() *VNode
- func (element *VNode) Attribute(key, value string) INode
- func (element *VNode) BindText(signal Gettable[string]) INode
- func (element *VNode) Body(childs ...INode) INode
- func (element *VNode) BodyList(childs []INode) INode
- func (element *VNode) Class(classes ...string) INode
- func (element *VNode) Id(id string) INode
- func (element *VNode) On(event Event, handler func(ctx EventContext)) INode
- func (element *VNode) OnClick(handler func(ctx EventContext)) INode
- func (element *VNode) RemoveAttribute(key string) INode
- func (element *VNode) RemoveClass(classes ...string) INode
- func (element *VNode) RemoveStyle(key string) INode
- func (e *VNode) Src(v string) INode
- func (element *VNode) Style(key, value string) INode
- func (element *VNode) Text(t string) INode
- type ValueWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComputedT ¶
type ComputedT[T comparable] struct { // contains filtered or unexported fields }
func Computed ¶
func Computed[T comparable](fn func() T) *ComputedT[T]
type DiffRenderer ¶ added in v0.1.4
type DiffRenderer struct {
// contains filtered or unexported fields
}
func (DiffRenderer) GetMarkedCommonAncestor ¶ added in v0.1.4
func (renderer DiffRenderer) GetMarkedCommonAncestor() *VNode
func (*DiffRenderer) Mark ¶ added in v0.1.4
func (r *DiffRenderer) Mark(element *VNode)
func (*DiffRenderer) ScheduleRender ¶ added in v0.1.4
func (r *DiffRenderer) ScheduleRender()
type Effect ¶
type Effect struct {
// contains filtered or unexported fields
}
func EffectFunc ¶
func EffectFunc(fn func()) *Effect
type EventContext ¶
type INode ¶
type INode interface {
Id(id string) INode
Text(t string) INode
BindText(signal Gettable[string]) INode
Body(childs ...INode) INode
BodyList(childs []INode) INode
Attribute(key, value string) INode
RemoveAttribute(key string) INode
Style(key, value string) INode
RemoveStyle(key string) INode
Class(classes ...string) INode
RemoveClass(classes ...string) INode
On(event Event, handler func(ctx EventContext)) INode
OnClick(handler func(ctx EventContext)) INode
}
type InputVNode ¶
type InputVNode struct {
VNode
}
func Input ¶
func Input() *InputVNode
func (*InputVNode) BindOnChange ¶ added in v0.1.3
func (element *InputVNode) BindOnChange(signal Settable[string]) *InputVNode
func (*InputVNode) BindOnInput ¶
func (element *InputVNode) BindOnInput(signal Settable[string]) *InputVNode
func (*InputVNode) BindValue ¶ added in v0.1.2
func (element *InputVNode) BindValue(signal Gettable[string]) *InputVNode
func (*InputVNode) Placeholder ¶
func (e *InputVNode) Placeholder(v string) *InputVNode
func (*InputVNode) Type ¶
func (e *InputVNode) Type(v string) *InputVNode
func (*InputVNode) Value ¶
func (element *InputVNode) Value(t string) INode
type NoopNode ¶ added in v0.1.2
type NoopNode struct {
VNode
}
func (*NoopNode) On ¶ added in v0.1.2
func (nop *NoopNode) On(event Event, handler func(ctx EventContext)) INode
func (*NoopNode) OnClick ¶ added in v0.1.2
func (nop *NoopNode) OnClick(handler func(ctx EventContext)) INode
func (*NoopNode) RemoveAttribute ¶ added in v0.1.2
func (*NoopNode) RemoveClass ¶ added in v0.1.2
func (*NoopNode) RemoveStyle ¶ added in v0.1.2
type StringRenderer ¶ added in v0.1.4
type StringRenderer struct {
// contains filtered or unexported fields
}
func (*StringRenderer) Mark ¶ added in v0.1.4
func (ssr *StringRenderer) Mark(element *VNode)
func (*StringRenderer) Render ¶ added in v0.1.4
func (ssr *StringRenderer) Render(current *VNode)
func (*StringRenderer) Reset ¶ added in v0.1.4
func (ssr *StringRenderer) Reset()
func (*StringRenderer) ScheduleRender ¶ added in v0.1.4
func (ssr *StringRenderer) ScheduleRender()
func (*StringRenderer) String ¶ added in v0.1.4
func (ssr *StringRenderer) String() string
type TextAreaNode ¶ added in v0.1.4
type TextAreaNode struct {
VNode
}
func TextArea ¶
func TextArea() *TextAreaNode
func (*TextAreaNode) BindValue ¶ added in v0.1.4
func (element *TextAreaNode) BindValue(signal Gettable[string]) *TextAreaNode
func (*TextAreaNode) Value ¶ added in v0.1.4
func (element *TextAreaNode) Value(t string) INode
type VNode ¶
type VNode struct {
// contains filtered or unexported fields
}
func NewFromIdWithRenderer ¶ added in v0.1.4
func NewWithRenderer ¶ added in v0.1.4
func NewWithoutMount ¶ added in v0.1.4
func (*VNode) OnClick ¶
func (element *VNode) OnClick(handler func(ctx EventContext)) INode
func (*VNode) RemoveAttribute ¶
func (*VNode) RemoveClass ¶
func (*VNode) RemoveStyle ¶
type ValueWrapper ¶ added in v0.1.2
type ValueWrapper[T any] struct { // contains filtered or unexported fields }
func Value ¶ added in v0.1.2
func Value[T any](t T) ValueWrapper[T]
func (ValueWrapper[T]) Get ¶ added in v0.1.2
func (v ValueWrapper[T]) Get() T
func (*ValueWrapper[T]) Set ¶ added in v0.1.2
func (v *ValueWrapper[T]) Set(t T)
Click to show internal directories.
Click to hide internal directories.
