Documentation ¶
Overview ¶
DO NOT EDIT - generated file
Index ¶
- type Direction
- type HTML
- func (h *HTML) A(elems ...any) *frag
- func (h *HTML) Action(elems ...any) attr
- func (h *HTML) Alt(elems ...any) attr
- func (h *HTML) Area(elems ...any) *frag
- func (h *HTML) Base(elems ...any) *frag
- func (h *HTML) Border(elems ...any) attr
- func (h *HTML) Br(elems ...any) *frag
- func (h *HTML) Button(elems ...any) *frag
- func (h *HTML) Checked(elems ...any) attr
- func (h *HTML) Class(elems ...any) attr
- func (h *HTML) Close() flag
- func (h *HTML) Col(elems ...any) *frag
- func (h *HTML) Content(elems ...any) attr
- func (h *HTML) Disabled(elems ...any) attr
- func (h *HTML) Div(elems ...any) *frag
- func (h *HTML) Download(elems ...any) attr
- func (h *HTML) Embed(elems ...any) *frag
- func (h *HTML) For(elems ...any) attr
- func (h *HTML) Form(elems ...any) *frag
- func (h *HTML) H1(elems ...any) *frag
- func (h *HTML) H2(elems ...any) *frag
- func (h *HTML) H3(elems ...any) *frag
- func (h *HTML) H4(elems ...any) *frag
- func (h *HTML) H5(elems ...any) *frag
- func (h *HTML) H6(elems ...any) *frag
- func (h *HTML) Height(elems ...any) attr
- func (h *HTML) Hr(elems ...any) *frag
- func (h *HTML) Href(elems ...any) attr
- func (h *HTML) Id(elems ...any) attr
- func (h *HTML) If(c bool) flag
- func (h *HTML) Img(elems ...any) *frag
- func (h *HTML) Input(elems ...any) *frag
- func (h *HTML) Label(elems ...any) *frag
- func (h *HTML) Li(elems ...any) *frag
- func (h *HTML) Link(elems ...any) *frag
- func (h *HTML) Meta(elems ...any) *frag
- func (h *HTML) Method(elems ...any) attr
- func (h *HTML) Name(elems ...any) attr
- func (h *HTML) Ol(elems ...any) *frag
- func (h *HTML) Onclick(elems ...any) attr
- func (h *HTML) Onsubmit(elems ...any) attr
- func (h *HTML) Open() flag
- func (h *HTML) Option(elems ...any) *frag
- func (h *HTML) P(elems ...any) *frag
- func (h *HTML) Rel(elems ...any) attr
- func (h *HTML) Select(elems ...any) *frag
- func (h *HTML) Selected(elems ...any) attr
- func (h *HTML) Size(elems ...any) attr
- func (h *HTML) Source(elems ...any) *frag
- func (h *HTML) Span(elems ...any) *frag
- func (h *HTML) Src(elems ...any) attr
- func (h *HTML) Style(elems ...any) attr
- func (h *HTML) Summary(elems ...any) attr
- func (h *HTML) Table(elems ...any) *frag
- func (h *HTML) Tbody(elems ...any) *frag
- func (h *HTML) Td(elems ...any) *frag
- func (h *HTML) Text(s ...any) string
- func (h *HTML) Thead(elems ...any) *frag
- func (h *HTML) Title(elems ...any) attr
- func (h *HTML) Tr(elems ...any) *frag
- func (h *HTML) Track(elems ...any) *frag
- func (h *HTML) Type(elems ...any) attr
- func (h *HTML) Ul(elems ...any) *frag
- func (h *HTML) Value(elems ...any) attr
- func (h *HTML) Wbr(elems ...any) *frag
- func (h *HTML) Width(elems ...any) attr
- func (h *HTML) Wr(s ...any)
- type Window
- func (w *Window) AddJSFunction(name string, f func(js.Value, []js.Value) any)
- func (w *Window) AddStyle(s string)
- func (w *Window) Alert(a string)
- func (w *Window) Display(s string)
- func (w *Window) Fetcher(file string) *fetcher
- func (w *Window) GetById(id string) js.Value
- func (w *Window) Goto(url string)
- func (w *Window) LoadStyle(s string)
- func (w *Window) OnKey(elem js.Value, f func(key string))
- func (w *Window) OnResize(f func())
- func (w *Window) OnSwipe(f func(Direction) bool)
- func (w *Window) SetTitle(title string) *Window
- func (w *Window) Wait()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTML ¶
type HTML struct {
// contains filtered or unexported fields
}
type Window ¶
type Window struct {
Width, Height int // Width and Height of window
Window, Document, Head, Body js.Value
// contains filtered or unexported fields
}
Window is the main structure for interfacing to the browser
func GetWindow ¶
func GetWindow() *Window
GetWindow creates a Window ready to interface to the browser.
func (*Window) AddJSFunction ¶
AddJSFunction registers a javascript function that invokes the Go function passed.
func (*Window) OnKey ¶
OnKey registers a callback to be invoked when a key is pressed on this element.
func (*Window) OnResize ¶
func (w *Window) OnResize(f func())
OnResize registers a callback to be invoked when the window changes size.
func (*Window) OnSwipe ¶
OnSwipe registers a callback to be called for swipe events. If the callback handles the event, it returns true.
Click to show internal directories.
Click to hide internal directories.