Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalState = New(js.Null())
Functions ¶
func With ¶ added in v2.7.0
func With(value interface{}, e StatefulElement) error
With adds the stateful element to the state map.
Types ¶
type State ¶
type State struct { Root js.Value Elements map[string][]StatefulElement Flags StateFlags OnUpdate func() }
func (*State) With ¶ added in v2.7.0
func (s *State) With(value interface{}, e StatefulElement) error
type StateFlags ¶ added in v2.7.2
type StateFlags uint32
const ( F_APPEND StateFlags = 1 << iota F_PREPEND F_NONE )
type StatefulElement ¶
func Get ¶
func Get(key Keyer) []StatefulElement
Get returns the stateful element from the state map.
func NewElement ¶ added in v2.7.0
Click to show internal directories.
Click to hide internal directories.