Documentation ¶
Rendered for js/wasm
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentWithEventListener ¶
type ComponentWithEventListener interface { Component AddEventListener(event string, fn func(this jsext.Value, event jsext.Event)) }
Component with eventlistener interface
type ComponentWithValue ¶ added in v1.3.4
Component with value interface
type Loader ¶
type Loader interface { Stop() // Stop the loader. Show() // Show the loader. Run(f func()) // Run the function, finalize loader automatically. Finalize() // Finalize loader. }
Loader component
type Router ¶ added in v1.1.9
type Router interface { Register(string, string, func(v vars.Vars, u *url.URL)) *routes.Route Run() OnLoad(f func()) OnPageChange(func(v vars.Vars, u *url.URL)) Redirect(string) AfterPageChange(f func(vars.Vars, *url.URL)) OnError(func(err error)) SkipTrailingSlash() NameToTitle(bool) Throw(int) Use(middleware func(vars.Vars, *url.URL, *routes.Route, rterr.ErrorThrower) bool) Error(code int, msg string) rterr.RouterError }
Click to show internal directories.
Click to hide internal directories.