Documentation
¶
Index ¶
- func Each(slice interface{}) func(fn func(int, any) elements.Element) *elements.SliceEl
- func Each2[T any](slice []T) func(fn func(int, T) elements.Element) *elements.SliceEl
- func For(init, reached int) func(fn func(int) elements.Element) *elements.SliceEl
- func If(condition bool) func(el elements.Element) statement
- type App
- type State
- type StateManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct { Element elements.Element StateManager *StateManager }
type State ¶
type State struct {
// contains filtered or unexported fields
}
the state represents a reactive value in the main component
NOTE: id is used by the state manager in the runtime and when something is pushed through the channel, this data will be placed on value field
type StateManager ¶
type StateManager struct {
// contains filtered or unexported fields
}
func NewStateManager ¶
func NewStateManager() *StateManager
func (*StateManager) Start ¶
func (m *StateManager) Start()
func (*StateManager) Stop ¶
func (m *StateManager) Stop()
Click to show internal directories.
Click to hide internal directories.