components

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2023 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component interface {
	Render() jsext.Element
}

Component interface

type ComponentWithEventListener

type ComponentWithEventListener interface {
	Component
	AddEventListener(event string, fn func(this jsext.Value, event jsext.Event))
}

Component with eventlistener interface

type ComponentWithValue

type ComponentWithValue interface {
	Component
	Value() jsext.Value
}

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

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
}

type URL

type URL struct {
	Name string
	Url  string
}

URL for use in components

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL