Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderChildren ¶
func SetDocument ¶
func SetDocument(doc *Document)
func UpdateComponentArray ¶
func UpdateComponentArray[T Component, Props any](input *[]T, newLen int, newT func(props *Props) T, newProps []*Props)
UpdateComponentArray provides functionality to control a variable-length collection of components, such as a list of rows in a table, or any other collection of sub-components (children).
Types ¶
type Document ¶
type Document struct {
// contains filtered or unexported fields
}
func GetDocument ¶
func GetDocument() *Document
func NewDocument ¶
func (*Document) AddEventListener ¶
func (*Document) GetComponentTree ¶
type State ¶
type State[T any] struct { Value *T // contains filtered or unexported fields }
State is a generic struct that holds a value and a channel
Click to show internal directories.
Click to hide internal directories.