Documentation ¶
Overview ¶
Package html provides functions to build up the DOM of an app.
Index ¶
- func Render(view Viewer, rootUpdateFunc interface{})
- type HTML
- func (s *HTML) ID() string
- func (s HTML) On(event string, rootUpdateFunc, updateFunc, actionFunc interface{}) HTML
- func (s HTML) OnClick(rootUpdateFunc, updateFunc, actionFunc interface{}) HTML
- func (s HTML) OnKeypress(rootUpdateFunc, updateFunc, actionFunc interface{}) HTML
- func (s HTML) Props(props [][]string) HTML
- func (s HTML) Render() (string, []func())
- func (s HTML) Style(styles [][]string) HTML
- type Viewer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTML ¶
type HTML struct {
// contains filtered or unexported fields
}
HTML defines an HTML element.
func (HTML) OnKeypress ¶
OnKeypress adds a keypress handler to an HTML element.
Click to show internal directories.
Click to hide internal directories.