Documentation
¶
Index ¶
- Constants
- func HTMLButtonUpdate(buttons []app.HTMLButton, modify func(button app.HTMLButton)) (result []app.UI)
- func OnEvent(msg string) func(ctx app.Context, e app.Event)
- type ComponentTest
- type Counter
- type JsUtil
- func (j *JsUtil) ConsoleLog(args ...interface{})
- func (j *JsUtil) JsNewAtPath(path string, args ...interface{}) app.Value
- func (j *JsUtil) JsValueAt(root app.Value, path string, warn bool) app.Value
- func (j *JsUtil) JsValueAtPath(path string) app.Value
- func (j *JsUtil) LogWithP(o interface{}, msg string)
- func (j *JsUtil) MDCRipple(id string) app.Value
- func (j *JsUtil) MDCRippleVal(val app.Value) app.Value
- func (j *JsUtil) UUID() string
- type Match
- type Message
Constants ¶
View Source
const AddEventListener = "addEventListener"
Variables ¶
This section is empty.
Functions ¶
func HTMLButtonUpdate ¶
func HTMLButtonUpdate(buttons []app.HTMLButton, modify func(button app.HTMLButton)) (result []app.UI)
HTMLButtonUpdate is a convenience method for applying additional operations on buttons that are used in nav bars or other locations.
Types ¶
type ComponentTest ¶
type ComponentTest struct { T *testing.T Compo app.UI Dispatcher app.ServerDispatcher // contains filtered or unexported fields }
func (*ComponentTest) At ¶
func (c *ComponentTest) At(path ...int) Match
func (*ComponentTest) Close ¶
func (c *ComponentTest) Close()
func (*ComponentTest) Match ¶
func (c *ComponentTest) Match(expected app.UI)
type JsUtil ¶
type JsUtil struct{}
func (*JsUtil) ConsoleLog ¶
func (j *JsUtil) ConsoleLog(args ...interface{})
func (*JsUtil) JsNewAtPath ¶
func (*JsUtil) MDCRipple ¶
MDCRipple constructs a new mdc.ripple.MDCRipple from a provided element id
func (*JsUtil) MDCRippleVal ¶
MDCRippleVal constructs a new mdc.ripple.MDCRipple from a provided app.Value
Click to show internal directories.
Click to hide internal directories.