Documentation
¶
Index ¶
- Variables
- func Adapt(f func(*Ctx) error) fiber.Handler
- func AttrString(attrs map[string]string) string
- func NewComponent[T UIEl](ctor func(*Session, TArgs) []T) func(*Session, TArgs) *Component[T]
- func NewUIEl[T UIEl](ctor func() T) T
- type A
- func (e *A) AppendChild(child UIEl) int
- func (e *A) Clone() UIEl
- func (e *A) GetChild(index int) UIEl
- func (e *A) GetID() string
- func (e *A) RemoveChild(index int)
- func (e *A) Render() string
- func (e *A) WithBlur(sig *Signal[UIEl]) *A
- func (e *A) WithClick(sig *Signal[UIEl]) *A
- func (e *A) WithFocus(sig *Signal[UIEl]) *A
- type Abbr
- type Acronym
- type Address
- type Animate
- func (e *Animate) AppendChild(child UIEl) int
- func (e *Animate) Clone() UIEl
- func (e *Animate) GetChild(index int) UIEl
- func (e *Animate) GetID() string
- func (e *Animate) RemoveChild(index int)
- func (e *Animate) Render() string
- func (e *Animate) WithBeginEvent(sig *Signal[UIEl]) *Animate
- func (e *Animate) WithEndEvent(sig *Signal[UIEl]) *Animate
- type AnimateMotion
- func (e *AnimateMotion) AppendChild(child UIEl) int
- func (e *AnimateMotion) Clone() UIEl
- func (e *AnimateMotion) GetChild(index int) UIEl
- func (e *AnimateMotion) GetID() string
- func (e *AnimateMotion) RemoveChild(index int)
- func (e *AnimateMotion) Render() string
- func (e *AnimateMotion) WithBeginEvent(sig *Signal[UIEl]) *AnimateMotion
- func (e *AnimateMotion) WithEndEvent(sig *Signal[UIEl]) *AnimateMotion
- type AnimateTransform
- type Annotation
- type AnnotationXml
- type Applet
- type Area
- type Article
- type Aside
- type Audio
- func (e *Audio) AppendChild(child UIEl) int
- func (e *Audio) Clone() UIEl
- func (e *Audio) GetChild(index int) UIEl
- func (e *Audio) GetID() string
- func (e *Audio) RemoveChild(index int)
- func (e *Audio) Render() string
- func (e *Audio) WithEnded(sig *Signal[UIEl]) *Audio
- func (e *Audio) WithPause(sig *Signal[UIEl]) *Audio
- func (e *Audio) WithPlay(sig *Signal[UIEl]) *Audio
- func (e *Audio) WithSeeking(sig *Signal[UIEl]) *Audio
- func (e *Audio) WithTimeupdate(sig *Signal[UIEl]) *Audio
- func (e *Audio) WithVolumechange(sig *Signal[UIEl]) *Audio
- type B
- type Base
- type Basefont
- type Bdi
- type Bdo
- type Bgsound
- type Big
- type Blink
- type Blockquote
- type Body
- type Br
- type Button
- func (e *Button) AppendChild(child UIEl) int
- func (e *Button) Clone() UIEl
- func (e *Button) GetChild(index int) UIEl
- func (e *Button) GetID() string
- func (e *Button) RemoveChild(index int)
- func (e *Button) Render() string
- func (e *Button) WithBlur(sig *Signal[UIEl]) *Button
- func (e *Button) WithClick(sig *Signal[UIEl]) *Button
- func (e *Button) WithFocus(sig *Signal[UIEl]) *Button
- func (e *Button) WithKeydown(sig *Signal[UIEl]) *Button
- func (e *Button) WithKeyup(sig *Signal[UIEl]) *Button
- type Canvas
- func (e *Canvas) AppendChild(child UIEl) int
- func (e *Canvas) Clone() UIEl
- func (e *Canvas) GetChild(index int) UIEl
- func (e *Canvas) GetID() string
- func (e *Canvas) RemoveChild(index int)
- func (e *Canvas) Render() string
- func (e *Canvas) WithClick(sig *Signal[UIEl]) *Canvas
- func (e *Canvas) WithMousedown(sig *Signal[UIEl]) *Canvas
- func (e *Canvas) WithMousemove(sig *Signal[UIEl]) *Canvas
- func (e *Canvas) WithMouseup(sig *Signal[UIEl]) *Canvas
- type Caption
- type Center
- type Circle
- type Cite
- type ClipPath
- type Code
- type Col
- type Colgroup
- type Command
- type Component
- func (c *Component[T]) AppendChild(child UIEl) int
- func (c *Component[T]) Clone() UIEl
- func (c *Component[T]) GetChild(index int) UIEl
- func (c *Component[T]) GetID() string
- func (c *Component[T]) RemoveChild(index int)
- func (c *Component[T]) Render() string
- func (c *Component[T]) SetArgs(args TArgs)
- type Ctx
- type Data
- type Datalist
- type Dd
- type Defs
- type Del
- type Desc
- type Details
- type Dfn
- type Dialog
- func (e *Dialog) AppendChild(child UIEl) int
- func (e *Dialog) Clone() UIEl
- func (e *Dialog) GetChild(index int) UIEl
- func (e *Dialog) GetID() string
- func (e *Dialog) RemoveChild(index int)
- func (e *Dialog) Render() string
- func (e *Dialog) WithCancel(sig *Signal[UIEl]) *Dialog
- func (e *Dialog) WithClose(sig *Signal[UIEl]) *Dialog
- type Dir
- type Div
- func (e *Div) AppendChild(child UIEl) int
- func (e *Div) Clone() UIEl
- func (e *Div) GetChild(index int) UIEl
- func (e *Div) GetID() string
- func (e *Div) RemoveChild(index int)
- func (e *Div) Render() string
- func (e *Div) WithClick(sig *Signal[UIEl]) *Div
- func (e *Div) WithDblclick(sig *Signal[UIEl]) *Div
- func (e *Div) WithDragend(sig *Signal[UIEl]) *Div
- func (e *Div) WithDragstart(sig *Signal[UIEl]) *Div
- func (e *Div) WithDrop(sig *Signal[UIEl]) *Div
- type Dl
- type Dt
- type Ellipse
- type Em
- type Embed
- type FeBlend
- type FeColorMatrix
- type FeComponentTransfer
- type FeComposite
- type FeConvolveMatrix
- type FeDiffuseLighting
- type FeDisplacementMap
- type FeDistantLight
- type FeDropShadow
- type FeFlood
- type FeFuncA
- type FeFuncB
- type FeFuncG
- type FeFuncR
- type FeGaussianBlur
- type FeImage
- type FeMerge
- type FeMergeNode
- type FeMorphology
- type FeOffset
- type FePointLight
- type FeSpecularLighting
- type FeSpotLight
- type FeTile
- type FeTurbulence
- type Fencedframe
- type Fieldset
- type Figcaption
- type Figure
- type Filter
- type Font
- type Footer
- type ForeignObject
- type Form
- func (e *Form) AppendChild(child UIEl) int
- func (e *Form) Clone() UIEl
- func (e *Form) GetChild(index int) UIEl
- func (e *Form) GetID() string
- func (e *Form) RemoveChild(index int)
- func (e *Form) Render() string
- func (e *Form) WithReset(sig *Signal[UIEl]) *Form
- func (e *Form) WithSubmit(sig *Signal[UIEl]) *Form
- type Fragment
- type Frame
- type Frameset
- type G
- type H1
- type H2
- type H3
- type H4
- type H5
- type H6
- type Head
- type Header
- type Hgroup
- type Hr
- type Html
- type I
- type Iframe
- type Image
- type Img
- type Input
- func (e *Input) AppendChild(child UIEl) int
- func (e *Input) Clone() UIEl
- func (e *Input) GetChild(index int) UIEl
- func (e *Input) GetID() string
- func (e *Input) GetValueSignal() *Signal[string]
- func (e *Input) RemoveChild(index int)
- func (e *Input) Render() string
- func (e *Input) WithBlur(sig *Signal[UIEl]) *Input
- func (e *Input) WithChange(sig *Signal[UIEl]) *Input
- func (e *Input) WithFocus(sig *Signal[UIEl]) *Input
- func (e *Input) WithInput(sig *Signal[UIEl]) *Input
- func (e *Input) WithKeydown(sig *Signal[UIEl]) *Input
- func (e *Input) WithKeyup(sig *Signal[UIEl]) *Input
- func (e *Input) WithValue(sig *Signal[string]) *Input
- type Ins
- type Isindex
- type Kbd
- type Keygen
- type Label
- type Legend
- type Li
- type Line
- type LinearGradient
- type Link
- type Listing
- type Maction
- type Main
- type Map
- type Mark
- type Marker
- type Marquee
- type Mask
- type Math
- type Menu
- type Menuitem
- type Merror
- type Meta
- type Metadata
- type Meter
- type Mfrac
- type Mi
- type Mmultiscripts
- type Mn
- type Mo
- type Model
- type Mover
- type Mpadded
- type Mpath
- type Mphantom
- type Mprescripts
- type Mroot
- type Mrow
- type Ms
- type Mspace
- type Msqrt
- type Mstyle
- type Msub
- type Msubsup
- type Msup
- type Mtable
- type Mtd
- type Mtext
- type Mtr
- type Multicol
- type Munder
- type Munderover
- type Nav
- type Nextid
- type Nobr
- type Noembed
- type Noframes
- type Noscript
- type Object
- type Ol
- type Optgroup
- type Option
- type Output
- type P
- type Param
- type Path
- type Pattern
- type Picture
- type Plaintext
- type Polygon
- type Polyline
- type Portal
- type Pre
- type Progress
- type Q
- type RadialGradient
- type Rb
- type Rect
- type Router
- type Rp
- type Rt
- type Rtc
- type Ruby
- type S
- type Samp
- type Script
- type Search
- type Section
- type Select
- func (e *Select) AppendChild(child UIEl) int
- func (e *Select) Clone() UIEl
- func (e *Select) GetChild(index int) UIEl
- func (e *Select) GetID() string
- func (e *Select) GetValueSignal() *Signal[string]
- func (e *Select) RemoveChild(index int)
- func (e *Select) Render() string
- func (e *Select) WithBlur(sig *Signal[UIEl]) *Select
- func (e *Select) WithChange(sig *Signal[UIEl]) *Select
- func (e *Select) WithFocus(sig *Signal[UIEl]) *Select
- func (e *Select) WithValue(sig *Signal[string]) *Select
- type Selectedcontent
- type Semantics
- type Session
- type Set
- type Signal
- type Slot
- type Small
- type Source
- type Spacer
- type Span
- type Stop
- type Strike
- type String
- type Strong
- type Style
- type Sub
- type Summary
- type Sup
- type Svg
- func (e *Svg) AppendChild(child UIEl) int
- func (e *Svg) Clone() UIEl
- func (e *Svg) GetChild(index int) UIEl
- func (e *Svg) GetID() string
- func (e *Svg) RemoveChild(index int)
- func (e *Svg) Render() string
- func (e *Svg) WithBlur(sig *Signal[UIEl]) *Svg
- func (e *Svg) WithClick(sig *Signal[UIEl]) *Svg
- func (e *Svg) WithFocus(sig *Signal[UIEl]) *Svg
- func (e *Svg) WithMousemove(sig *Signal[UIEl]) *Svg
- type Switch
- type Symbol
- type TArgs
- type Table
- type Tbody
- type Td
- type Template
- type Text
- type TextPath
- type Textarea
- func (e *Textarea) AppendChild(child UIEl) int
- func (e *Textarea) Clone() UIEl
- func (e *Textarea) GetChild(index int) UIEl
- func (e *Textarea) GetID() string
- func (e *Textarea) GetValueSignal() *Signal[string]
- func (e *Textarea) RemoveChild(index int)
- func (e *Textarea) Render() string
- func (e *Textarea) WithBlur(sig *Signal[UIEl]) *Textarea
- func (e *Textarea) WithChange(sig *Signal[UIEl]) *Textarea
- func (e *Textarea) WithFocus(sig *Signal[UIEl]) *Textarea
- func (e *Textarea) WithInput(sig *Signal[UIEl]) *Textarea
- func (e *Textarea) WithValue(sig *Signal[string]) *Textarea
- type Tfoot
- type Th
- type Thead
- type Time
- type Title
- type Tr
- type Track
- type Tspan
- type Tt
- type U
- type UIEl
- type Ul
- type Use
- type ValueHolder
- type Var
- type Video
- func (e *Video) AppendChild(child UIEl) int
- func (e *Video) Clone() UIEl
- func (e *Video) GetChild(index int) UIEl
- func (e *Video) GetID() string
- func (e *Video) RemoveChild(index int)
- func (e *Video) Render() string
- func (e *Video) WithEnded(sig *Signal[UIEl]) *Video
- func (e *Video) WithPause(sig *Signal[UIEl]) *Video
- func (e *Video) WithPlay(sig *Signal[UIEl]) *Video
- func (e *Video) WithSeeking(sig *Signal[UIEl]) *Video
- func (e *Video) WithTimeupdate(sig *Signal[UIEl]) *Video
- func (e *Video) WithVolumechange(sig *Signal[UIEl]) *Video
- type View
- type Wbr
- type Xmp
Constants ¶
This section is empty.
Variables ¶
View Source
var Sessions = &sync.Map{}
Use a sync.Map for concurrent-safe session storage.
Functions ¶
func AttrString ¶
func NewComponent ¶
Types ¶
type A ¶
type A struct {
Session *Session
Children []UIEl
Attr string
Id string
OnClick *Signal[UIEl]
OnFocus *Signal[UIEl]
OnBlur *Signal[UIEl]
}
func (*A) AppendChild ¶
func (*A) RemoveChild ¶
type Animate ¶
type Animate struct {
Session *Session
Children []UIEl
Attr string
Id string
OnBeginEvent *Signal[UIEl]
OnEndEvent *Signal[UIEl]
}
func (*Animate) AppendChild ¶
func (*Animate) RemoveChild ¶
type AnimateMotion ¶
type AnimateMotion struct {
Session *Session
Children []UIEl
Attr string
Id string
OnBeginEvent *Signal[UIEl]
OnEndEvent *Signal[UIEl]
}
func NewAnimateMotion ¶
func NewAnimateMotion(sess *Session, attr string, children ...UIEl) *AnimateMotion
func (*AnimateMotion) AppendChild ¶
func (e *AnimateMotion) AppendChild(child UIEl) int
func (*AnimateMotion) Clone ¶
func (e *AnimateMotion) Clone() UIEl
func (*AnimateMotion) GetChild ¶
func (e *AnimateMotion) GetChild(index int) UIEl
func (*AnimateMotion) GetID ¶
func (e *AnimateMotion) GetID() string
func (*AnimateMotion) RemoveChild ¶
func (e *AnimateMotion) RemoveChild(index int)
func (*AnimateMotion) Render ¶
func (e *AnimateMotion) Render() string
func (*AnimateMotion) WithBeginEvent ¶
func (e *AnimateMotion) WithBeginEvent(sig *Signal[UIEl]) *AnimateMotion
func (*AnimateMotion) WithEndEvent ¶
func (e *AnimateMotion) WithEndEvent(sig *Signal[UIEl]) *AnimateMotion
type AnimateTransform ¶
func NewAnimateTransform ¶
func NewAnimateTransform(sess *Session, attr string, children ...UIEl) *AnimateTransform
func (*AnimateTransform) AppendChild ¶
func (e *AnimateTransform) AppendChild(child UIEl) int
func (*AnimateTransform) Clone ¶
func (e *AnimateTransform) Clone() UIEl
func (*AnimateTransform) GetChild ¶
func (e *AnimateTransform) GetChild(index int) UIEl
func (*AnimateTransform) GetID ¶
func (e *AnimateTransform) GetID() string
func (*AnimateTransform) RemoveChild ¶
func (e *AnimateTransform) RemoveChild(index int)
func (*AnimateTransform) Render ¶
func (e *AnimateTransform) Render() string
type Annotation ¶
func NewAnnotation ¶
func NewAnnotation(sess *Session, attr string, children ...UIEl) *Annotation
func (*Annotation) AppendChild ¶
func (e *Annotation) AppendChild(child UIEl) int
func (*Annotation) Clone ¶
func (e *Annotation) Clone() UIEl
func (*Annotation) GetChild ¶
func (e *Annotation) GetChild(index int) UIEl
func (*Annotation) GetID ¶
func (e *Annotation) GetID() string
func (*Annotation) RemoveChild ¶
func (e *Annotation) RemoveChild(index int)
func (*Annotation) Render ¶
func (e *Annotation) Render() string
type AnnotationXml ¶
func NewAnnotationXml ¶
func NewAnnotationXml(sess *Session, attr string, children ...UIEl) *AnnotationXml
func (*AnnotationXml) AppendChild ¶
func (e *AnnotationXml) AppendChild(child UIEl) int
func (*AnnotationXml) Clone ¶
func (e *AnnotationXml) Clone() UIEl
func (*AnnotationXml) GetChild ¶
func (e *AnnotationXml) GetChild(index int) UIEl
func (*AnnotationXml) GetID ¶
func (e *AnnotationXml) GetID() string
func (*AnnotationXml) RemoveChild ¶
func (e *AnnotationXml) RemoveChild(index int)
func (*AnnotationXml) Render ¶
func (e *AnnotationXml) Render() string
type Audio ¶
type Audio struct {
Session *Session
Children []UIEl
Attr string
Id string
OnPlay *Signal[UIEl]
OnPause *Signal[UIEl]
OnEnded *Signal[UIEl]
OnTimeupdate *Signal[UIEl]
OnSeeking *Signal[UIEl]
OnVolumechange *Signal[UIEl]
}
func (*Audio) AppendChild ¶
func (*Audio) RemoveChild ¶
type Blockquote ¶
func NewBlockquote ¶
func NewBlockquote(sess *Session, attr string, children ...UIEl) *Blockquote
func (*Blockquote) AppendChild ¶
func (e *Blockquote) AppendChild(child UIEl) int
func (*Blockquote) Clone ¶
func (e *Blockquote) Clone() UIEl
func (*Blockquote) GetChild ¶
func (e *Blockquote) GetChild(index int) UIEl
func (*Blockquote) GetID ¶
func (e *Blockquote) GetID() string
func (*Blockquote) RemoveChild ¶
func (e *Blockquote) RemoveChild(index int)
func (*Blockquote) Render ¶
func (e *Blockquote) Render() string
type Button ¶
type Button struct {
Session *Session
Children []UIEl
Attr string
Id string
OnClick *Signal[UIEl]
OnFocus *Signal[UIEl]
OnBlur *Signal[UIEl]
OnKeydown *Signal[UIEl]
OnKeyup *Signal[UIEl]
}
func (*Button) AppendChild ¶
func (*Button) RemoveChild ¶
type Canvas ¶
type Canvas struct {
Session *Session
Children []UIEl
Attr string
Id string
OnClick *Signal[UIEl]
OnMousemove *Signal[UIEl]
OnMousedown *Signal[UIEl]
OnMouseup *Signal[UIEl]
}
func (*Canvas) AppendChild ¶
func (*Canvas) RemoveChild ¶
type Command ¶
type Command struct {
Type string `json:"type"`
ID string `json:"id"`
Content string `json:"content,omitempty"`
}
Command is a generic struct for sending commands to the client.
type Component ¶
type Component[T UIEl] struct { Children []T Session *Session Id string Ctor func(*Session, TArgs) []T Args TArgs }
func (*Component[T]) AppendChild ¶
func (*Component[T]) RemoveChild ¶
type Ctx ¶
func (*Ctx) GetSession ¶
type Details ¶
type Details struct {
Session *Session
Children []UIEl
Attr string
Id string
OnToggle *Signal[UIEl]
}
func (*Details) AppendChild ¶
func (*Details) RemoveChild ¶
type Dialog ¶
type Dialog struct {
Session *Session
Children []UIEl
Attr string
Id string
OnCancel *Signal[UIEl]
OnClose *Signal[UIEl]
}
func (*Dialog) AppendChild ¶
func (*Dialog) RemoveChild ¶
type Div ¶
type Div struct {
Session *Session
Children []UIEl
Attr string
Id string
OnClick *Signal[UIEl]
OnDblclick *Signal[UIEl]
OnDragstart *Signal[UIEl]
OnDragend *Signal[UIEl]
OnDrop *Signal[UIEl]
}
func (*Div) AppendChild ¶
func (*Div) RemoveChild ¶
type FeColorMatrix ¶
func NewFeColorMatrix ¶
func NewFeColorMatrix(sess *Session, attr string, children ...UIEl) *FeColorMatrix
func (*FeColorMatrix) AppendChild ¶
func (e *FeColorMatrix) AppendChild(child UIEl) int
func (*FeColorMatrix) Clone ¶
func (e *FeColorMatrix) Clone() UIEl
func (*FeColorMatrix) GetChild ¶
func (e *FeColorMatrix) GetChild(index int) UIEl
func (*FeColorMatrix) GetID ¶
func (e *FeColorMatrix) GetID() string
func (*FeColorMatrix) RemoveChild ¶
func (e *FeColorMatrix) RemoveChild(index int)
func (*FeColorMatrix) Render ¶
func (e *FeColorMatrix) Render() string
type FeComponentTransfer ¶
func NewFeComponentTransfer ¶
func NewFeComponentTransfer(sess *Session, attr string, children ...UIEl) *FeComponentTransfer
func (*FeComponentTransfer) AppendChild ¶
func (e *FeComponentTransfer) AppendChild(child UIEl) int
func (*FeComponentTransfer) Clone ¶
func (e *FeComponentTransfer) Clone() UIEl
func (*FeComponentTransfer) GetChild ¶
func (e *FeComponentTransfer) GetChild(index int) UIEl
func (*FeComponentTransfer) GetID ¶
func (e *FeComponentTransfer) GetID() string
func (*FeComponentTransfer) RemoveChild ¶
func (e *FeComponentTransfer) RemoveChild(index int)
func (*FeComponentTransfer) Render ¶
func (e *FeComponentTransfer) Render() string
type FeComposite ¶
func NewFeComposite ¶
func NewFeComposite(sess *Session, attr string, children ...UIEl) *FeComposite
func (*FeComposite) AppendChild ¶
func (e *FeComposite) AppendChild(child UIEl) int
func (*FeComposite) Clone ¶
func (e *FeComposite) Clone() UIEl
func (*FeComposite) GetChild ¶
func (e *FeComposite) GetChild(index int) UIEl
func (*FeComposite) GetID ¶
func (e *FeComposite) GetID() string
func (*FeComposite) RemoveChild ¶
func (e *FeComposite) RemoveChild(index int)
func (*FeComposite) Render ¶
func (e *FeComposite) Render() string
type FeConvolveMatrix ¶
func NewFeConvolveMatrix ¶
func NewFeConvolveMatrix(sess *Session, attr string, children ...UIEl) *FeConvolveMatrix
func (*FeConvolveMatrix) AppendChild ¶
func (e *FeConvolveMatrix) AppendChild(child UIEl) int
func (*FeConvolveMatrix) Clone ¶
func (e *FeConvolveMatrix) Clone() UIEl
func (*FeConvolveMatrix) GetChild ¶
func (e *FeConvolveMatrix) GetChild(index int) UIEl
func (*FeConvolveMatrix) GetID ¶
func (e *FeConvolveMatrix) GetID() string
func (*FeConvolveMatrix) RemoveChild ¶
func (e *FeConvolveMatrix) RemoveChild(index int)
func (*FeConvolveMatrix) Render ¶
func (e *FeConvolveMatrix) Render() string
type FeDiffuseLighting ¶
func NewFeDiffuseLighting ¶
func NewFeDiffuseLighting(sess *Session, attr string, children ...UIEl) *FeDiffuseLighting
func (*FeDiffuseLighting) AppendChild ¶
func (e *FeDiffuseLighting) AppendChild(child UIEl) int
func (*FeDiffuseLighting) Clone ¶
func (e *FeDiffuseLighting) Clone() UIEl
func (*FeDiffuseLighting) GetChild ¶
func (e *FeDiffuseLighting) GetChild(index int) UIEl
func (*FeDiffuseLighting) GetID ¶
func (e *FeDiffuseLighting) GetID() string
func (*FeDiffuseLighting) RemoveChild ¶
func (e *FeDiffuseLighting) RemoveChild(index int)
func (*FeDiffuseLighting) Render ¶
func (e *FeDiffuseLighting) Render() string
type FeDisplacementMap ¶
func NewFeDisplacementMap ¶
func NewFeDisplacementMap(sess *Session, attr string, children ...UIEl) *FeDisplacementMap
func (*FeDisplacementMap) AppendChild ¶
func (e *FeDisplacementMap) AppendChild(child UIEl) int
func (*FeDisplacementMap) Clone ¶
func (e *FeDisplacementMap) Clone() UIEl
func (*FeDisplacementMap) GetChild ¶
func (e *FeDisplacementMap) GetChild(index int) UIEl
func (*FeDisplacementMap) GetID ¶
func (e *FeDisplacementMap) GetID() string
func (*FeDisplacementMap) RemoveChild ¶
func (e *FeDisplacementMap) RemoveChild(index int)
func (*FeDisplacementMap) Render ¶
func (e *FeDisplacementMap) Render() string
type FeDistantLight ¶
func NewFeDistantLight ¶
func NewFeDistantLight(sess *Session, attr string, children ...UIEl) *FeDistantLight
func (*FeDistantLight) AppendChild ¶
func (e *FeDistantLight) AppendChild(child UIEl) int
func (*FeDistantLight) Clone ¶
func (e *FeDistantLight) Clone() UIEl
func (*FeDistantLight) GetChild ¶
func (e *FeDistantLight) GetChild(index int) UIEl
func (*FeDistantLight) GetID ¶
func (e *FeDistantLight) GetID() string
func (*FeDistantLight) RemoveChild ¶
func (e *FeDistantLight) RemoveChild(index int)
func (*FeDistantLight) Render ¶
func (e *FeDistantLight) Render() string
type FeDropShadow ¶
func NewFeDropShadow ¶
func NewFeDropShadow(sess *Session, attr string, children ...UIEl) *FeDropShadow
func (*FeDropShadow) AppendChild ¶
func (e *FeDropShadow) AppendChild(child UIEl) int
func (*FeDropShadow) Clone ¶
func (e *FeDropShadow) Clone() UIEl
func (*FeDropShadow) GetChild ¶
func (e *FeDropShadow) GetChild(index int) UIEl
func (*FeDropShadow) GetID ¶
func (e *FeDropShadow) GetID() string
func (*FeDropShadow) RemoveChild ¶
func (e *FeDropShadow) RemoveChild(index int)
func (*FeDropShadow) Render ¶
func (e *FeDropShadow) Render() string
type FeGaussianBlur ¶
func NewFeGaussianBlur ¶
func NewFeGaussianBlur(sess *Session, attr string, children ...UIEl) *FeGaussianBlur
func (*FeGaussianBlur) AppendChild ¶
func (e *FeGaussianBlur) AppendChild(child UIEl) int
func (*FeGaussianBlur) Clone ¶
func (e *FeGaussianBlur) Clone() UIEl
func (*FeGaussianBlur) GetChild ¶
func (e *FeGaussianBlur) GetChild(index int) UIEl
func (*FeGaussianBlur) GetID ¶
func (e *FeGaussianBlur) GetID() string
func (*FeGaussianBlur) RemoveChild ¶
func (e *FeGaussianBlur) RemoveChild(index int)
func (*FeGaussianBlur) Render ¶
func (e *FeGaussianBlur) Render() string
type FeMergeNode ¶
func NewFeMergeNode ¶
func NewFeMergeNode(sess *Session, attr string, children ...UIEl) *FeMergeNode
func (*FeMergeNode) AppendChild ¶
func (e *FeMergeNode) AppendChild(child UIEl) int
func (*FeMergeNode) Clone ¶
func (e *FeMergeNode) Clone() UIEl
func (*FeMergeNode) GetChild ¶
func (e *FeMergeNode) GetChild(index int) UIEl
func (*FeMergeNode) GetID ¶
func (e *FeMergeNode) GetID() string
func (*FeMergeNode) RemoveChild ¶
func (e *FeMergeNode) RemoveChild(index int)
func (*FeMergeNode) Render ¶
func (e *FeMergeNode) Render() string
type FeMorphology ¶
func NewFeMorphology ¶
func NewFeMorphology(sess *Session, attr string, children ...UIEl) *FeMorphology
func (*FeMorphology) AppendChild ¶
func (e *FeMorphology) AppendChild(child UIEl) int
func (*FeMorphology) Clone ¶
func (e *FeMorphology) Clone() UIEl
func (*FeMorphology) GetChild ¶
func (e *FeMorphology) GetChild(index int) UIEl
func (*FeMorphology) GetID ¶
func (e *FeMorphology) GetID() string
func (*FeMorphology) RemoveChild ¶
func (e *FeMorphology) RemoveChild(index int)
func (*FeMorphology) Render ¶
func (e *FeMorphology) Render() string
type FePointLight ¶
func NewFePointLight ¶
func NewFePointLight(sess *Session, attr string, children ...UIEl) *FePointLight
func (*FePointLight) AppendChild ¶
func (e *FePointLight) AppendChild(child UIEl) int
func (*FePointLight) Clone ¶
func (e *FePointLight) Clone() UIEl
func (*FePointLight) GetChild ¶
func (e *FePointLight) GetChild(index int) UIEl
func (*FePointLight) GetID ¶
func (e *FePointLight) GetID() string
func (*FePointLight) RemoveChild ¶
func (e *FePointLight) RemoveChild(index int)
func (*FePointLight) Render ¶
func (e *FePointLight) Render() string
type FeSpecularLighting ¶
func NewFeSpecularLighting ¶
func NewFeSpecularLighting(sess *Session, attr string, children ...UIEl) *FeSpecularLighting
func (*FeSpecularLighting) AppendChild ¶
func (e *FeSpecularLighting) AppendChild(child UIEl) int
func (*FeSpecularLighting) Clone ¶
func (e *FeSpecularLighting) Clone() UIEl
func (*FeSpecularLighting) GetChild ¶
func (e *FeSpecularLighting) GetChild(index int) UIEl
func (*FeSpecularLighting) GetID ¶
func (e *FeSpecularLighting) GetID() string
func (*FeSpecularLighting) RemoveChild ¶
func (e *FeSpecularLighting) RemoveChild(index int)
func (*FeSpecularLighting) Render ¶
func (e *FeSpecularLighting) Render() string
type FeSpotLight ¶
func NewFeSpotLight ¶
func NewFeSpotLight(sess *Session, attr string, children ...UIEl) *FeSpotLight
func (*FeSpotLight) AppendChild ¶
func (e *FeSpotLight) AppendChild(child UIEl) int
func (*FeSpotLight) Clone ¶
func (e *FeSpotLight) Clone() UIEl
func (*FeSpotLight) GetChild ¶
func (e *FeSpotLight) GetChild(index int) UIEl
func (*FeSpotLight) GetID ¶
func (e *FeSpotLight) GetID() string
func (*FeSpotLight) RemoveChild ¶
func (e *FeSpotLight) RemoveChild(index int)
func (*FeSpotLight) Render ¶
func (e *FeSpotLight) Render() string
type FeTurbulence ¶
func NewFeTurbulence ¶
func NewFeTurbulence(sess *Session, attr string, children ...UIEl) *FeTurbulence
func (*FeTurbulence) AppendChild ¶
func (e *FeTurbulence) AppendChild(child UIEl) int
func (*FeTurbulence) Clone ¶
func (e *FeTurbulence) Clone() UIEl
func (*FeTurbulence) GetChild ¶
func (e *FeTurbulence) GetChild(index int) UIEl
func (*FeTurbulence) GetID ¶
func (e *FeTurbulence) GetID() string
func (*FeTurbulence) RemoveChild ¶
func (e *FeTurbulence) RemoveChild(index int)
func (*FeTurbulence) Render ¶
func (e *FeTurbulence) Render() string
type Fencedframe ¶
func NewFencedframe ¶
func NewFencedframe(sess *Session, attr string, children ...UIEl) *Fencedframe
func (*Fencedframe) AppendChild ¶
func (e *Fencedframe) AppendChild(child UIEl) int
func (*Fencedframe) Clone ¶
func (e *Fencedframe) Clone() UIEl
func (*Fencedframe) GetChild ¶
func (e *Fencedframe) GetChild(index int) UIEl
func (*Fencedframe) GetID ¶
func (e *Fencedframe) GetID() string
func (*Fencedframe) RemoveChild ¶
func (e *Fencedframe) RemoveChild(index int)
func (*Fencedframe) Render ¶
func (e *Fencedframe) Render() string
type Figcaption ¶
func NewFigcaption ¶
func NewFigcaption(sess *Session, attr string, children ...UIEl) *Figcaption
func (*Figcaption) AppendChild ¶
func (e *Figcaption) AppendChild(child UIEl) int
func (*Figcaption) Clone ¶
func (e *Figcaption) Clone() UIEl
func (*Figcaption) GetChild ¶
func (e *Figcaption) GetChild(index int) UIEl
func (*Figcaption) GetID ¶
func (e *Figcaption) GetID() string
func (*Figcaption) RemoveChild ¶
func (e *Figcaption) RemoveChild(index int)
func (*Figcaption) Render ¶
func (e *Figcaption) Render() string
type ForeignObject ¶
func NewForeignObject ¶
func NewForeignObject(sess *Session, attr string, children ...UIEl) *ForeignObject
func (*ForeignObject) AppendChild ¶
func (e *ForeignObject) AppendChild(child UIEl) int
func (*ForeignObject) Clone ¶
func (e *ForeignObject) Clone() UIEl
func (*ForeignObject) GetChild ¶
func (e *ForeignObject) GetChild(index int) UIEl
func (*ForeignObject) GetID ¶
func (e *ForeignObject) GetID() string
func (*ForeignObject) RemoveChild ¶
func (e *ForeignObject) RemoveChild(index int)
func (*ForeignObject) Render ¶
func (e *ForeignObject) Render() string
type Form ¶
type Form struct {
Session *Session
Children []UIEl
Attr string
Id string
OnSubmit *Signal[UIEl]
OnReset *Signal[UIEl]
}
func (*Form) AppendChild ¶
func (*Form) RemoveChild ¶
type Fragment ¶
type Fragment struct {
Children []UIEl
}
func NewFragment ¶
NewFragment creates a new Fragment instance.
func (*Fragment) AppendChild ¶
AppendChild adds a child to the Fragment.
func (*Fragment) RemoveChild ¶
RemoveChild removes a child by index.
type Input ¶
type Input struct {
Session *Session
Children []UIEl
Attr string
Id string
OnInput *Signal[UIEl]
OnChange *Signal[UIEl]
OnFocus *Signal[UIEl]
OnBlur *Signal[UIEl]
OnKeydown *Signal[UIEl]
OnKeyup *Signal[UIEl]
Value *Signal[string]
}
func (*Input) AppendChild ¶
func (*Input) GetValueSignal ¶
func (*Input) RemoveChild ¶
type LinearGradient ¶
func NewLinearGradient ¶
func NewLinearGradient(sess *Session, attr string, children ...UIEl) *LinearGradient
func (*LinearGradient) AppendChild ¶
func (e *LinearGradient) AppendChild(child UIEl) int
func (*LinearGradient) Clone ¶
func (e *LinearGradient) Clone() UIEl
func (*LinearGradient) GetChild ¶
func (e *LinearGradient) GetChild(index int) UIEl
func (*LinearGradient) GetID ¶
func (e *LinearGradient) GetID() string
func (*LinearGradient) RemoveChild ¶
func (e *LinearGradient) RemoveChild(index int)
func (*LinearGradient) Render ¶
func (e *LinearGradient) Render() string
type Mmultiscripts ¶
func NewMmultiscripts ¶
func NewMmultiscripts(sess *Session, attr string, children ...UIEl) *Mmultiscripts
func (*Mmultiscripts) AppendChild ¶
func (e *Mmultiscripts) AppendChild(child UIEl) int
func (*Mmultiscripts) Clone ¶
func (e *Mmultiscripts) Clone() UIEl
func (*Mmultiscripts) GetChild ¶
func (e *Mmultiscripts) GetChild(index int) UIEl
func (*Mmultiscripts) GetID ¶
func (e *Mmultiscripts) GetID() string
func (*Mmultiscripts) RemoveChild ¶
func (e *Mmultiscripts) RemoveChild(index int)
func (*Mmultiscripts) Render ¶
func (e *Mmultiscripts) Render() string
type Mprescripts ¶
func NewMprescripts ¶
func NewMprescripts(sess *Session, attr string, children ...UIEl) *Mprescripts
func (*Mprescripts) AppendChild ¶
func (e *Mprescripts) AppendChild(child UIEl) int
func (*Mprescripts) Clone ¶
func (e *Mprescripts) Clone() UIEl
func (*Mprescripts) GetChild ¶
func (e *Mprescripts) GetChild(index int) UIEl
func (*Mprescripts) GetID ¶
func (e *Mprescripts) GetID() string
func (*Mprescripts) RemoveChild ¶
func (e *Mprescripts) RemoveChild(index int)
func (*Mprescripts) Render ¶
func (e *Mprescripts) Render() string
type Munderover ¶
func NewMunderover ¶
func NewMunderover(sess *Session, attr string, children ...UIEl) *Munderover
func (*Munderover) AppendChild ¶
func (e *Munderover) AppendChild(child UIEl) int
func (*Munderover) Clone ¶
func (e *Munderover) Clone() UIEl
func (*Munderover) GetChild ¶
func (e *Munderover) GetChild(index int) UIEl
func (*Munderover) GetID ¶
func (e *Munderover) GetID() string
func (*Munderover) RemoveChild ¶
func (e *Munderover) RemoveChild(index int)
func (*Munderover) Render ¶
func (e *Munderover) Render() string
type RadialGradient ¶
func NewRadialGradient ¶
func NewRadialGradient(sess *Session, attr string, children ...UIEl) *RadialGradient
func (*RadialGradient) AppendChild ¶
func (e *RadialGradient) AppendChild(child UIEl) int
func (*RadialGradient) Clone ¶
func (e *RadialGradient) Clone() UIEl
func (*RadialGradient) GetChild ¶
func (e *RadialGradient) GetChild(index int) UIEl
func (*RadialGradient) GetID ¶
func (e *RadialGradient) GetID() string
func (*RadialGradient) RemoveChild ¶
func (e *RadialGradient) RemoveChild(index int)
func (*RadialGradient) Render ¶
func (e *RadialGradient) Render() string
type Select ¶
type Select struct {
Session *Session
Children []UIEl
Attr string
Id string
OnChange *Signal[UIEl]
OnFocus *Signal[UIEl]
OnBlur *Signal[UIEl]
Value *Signal[string]
}
func (*Select) AppendChild ¶
func (*Select) GetValueSignal ¶
func (*Select) RemoveChild ¶
type Selectedcontent ¶
func NewSelectedcontent ¶
func NewSelectedcontent(sess *Session, attr string, children ...UIEl) *Selectedcontent
func (*Selectedcontent) AppendChild ¶
func (e *Selectedcontent) AppendChild(child UIEl) int
func (*Selectedcontent) Clone ¶
func (e *Selectedcontent) Clone() UIEl
func (*Selectedcontent) GetChild ¶
func (e *Selectedcontent) GetChild(index int) UIEl
func (*Selectedcontent) GetID ¶
func (e *Selectedcontent) GetID() string
func (*Selectedcontent) RemoveChild ¶
func (e *Selectedcontent) RemoveChild(index int)
func (*Selectedcontent) Render ¶
func (e *Selectedcontent) Render() string
type Session ¶
type Session struct {
ID string
UIRegistry map[string]UIEl
SignalRegistry map[string]map[string]*Signal[UIEl]
LastAccessed time.Time
}
func NewSession ¶
func NewSession() *Session
type Signal ¶
type Signal[T comparable] struct { // contains filtered or unexported fields }
func NewSignal ¶
func NewSignal[T comparable](initial T) *Signal[T]
func (*Signal[T]) AsyncSubscribe ¶
type String ¶
type String struct {
Content string
}
func (*String) AppendChild ¶
func (*String) RemoveChild ¶
type Svg ¶
type Svg struct {
Session *Session
Children []UIEl
Attr string
Id string
OnClick *Signal[UIEl]
OnMousemove *Signal[UIEl]
OnFocus *Signal[UIEl]
OnBlur *Signal[UIEl]
}
func (*Svg) AppendChild ¶
func (*Svg) RemoveChild ¶
type Textarea ¶
type Textarea struct {
Session *Session
Children []UIEl
Attr string
Id string
OnInput *Signal[UIEl]
OnChange *Signal[UIEl]
OnFocus *Signal[UIEl]
OnBlur *Signal[UIEl]
Value *Signal[string]
}
func (*Textarea) AppendChild ¶
func (*Textarea) GetValueSignal ¶
func (*Textarea) RemoveChild ¶
type ValueHolder ¶
type Video ¶
type Video struct {
Session *Session
Children []UIEl
Attr string
Id string
OnPlay *Signal[UIEl]
OnPause *Signal[UIEl]
OnEnded *Signal[UIEl]
OnTimeupdate *Signal[UIEl]
OnSeeking *Signal[UIEl]
OnVolumechange *Signal[UIEl]
}
func (*Video) AppendChild ¶
func (*Video) RemoveChild ¶
Click to show internal directories.
Click to hide internal directories.