Documentation ¶
Index ¶
- Variables
- func AddClass(w js.Value, className string)
- func DoBearerDelete(bearer, urlString string) int
- func DoBearerGet(bearer, urlString string) (string, int)
- func DoBearerPatch(bearer, urlString string, payload any) int
- func DoBearerPost(bearer, urlString string, payload any) (string, int)
- func DoDelete(urlString string) int
- func DoGet(urlString string) string
- func DoHttpBearerRead(bearer string, request *http.Request) (string, int)
- func DoHttpRead(request *http.Request) (string, int)
- func DoPatch(urlString string, payload any) (string, int)
- func DoPost(urlString string, payload any) (string, int)
- func DoPut(urlString string, payload any) (string, int)
- func GetItemMap(item js.Value, count int) map[string]any
- func HasClass(w js.Value, className string) bool
- func LoadAllTemplates(files []fs.DirEntry)
- func NewGlobal() (*Global, *Document)
- func RemoveClass(w js.Value, className string)
- func Render(name string, vars any) string
- type Document
- func (d *Document) AppendTo(id, jsonString, template string)
- func (d *Document) ById(id string) js.Value
- func (d *Document) ByIdString(id string) string
- func (d *Document) ByIdWrap(id string) *Wrapper
- func (d *Document) ByIdWrapped(id string) *Wrapper
- func (d *Document) Id(id string) *Wrapper
- func (d *Document) NewTag(t, s string) *Wrapper
- func (d *Document) Render(name string, vars any) string
- func (d *Document) RenderAndAppend(location, template, key, jsonString string) *Wrapper
- func (d *Document) RenderToId(id, name string, vars any) *Wrapper
- func (d *Document) RenderToNewDiv(name string, vars any) js.Value
- func (d *Document) SelectAllFrom(id, s string) []*Wrapper
- type Global
- func (g *Global) Change(id string, fn func(js.Value, []js.Value) any)
- func (g *Global) Click(id string, fn func(js.Value, []js.Value) any)
- func (g *Global) Event(id string, fn func())
- func (g *Global) Focus(id string, fn func(js.Value, []js.Value) any)
- func (g *Global) IsBottom() bool
- func (g *Global) SetClipboard(s string)
- func (g *Global) Submit(id string, fn func(js.Value, []js.Value) any)
- func (g *Global) SubmitEvent(id string, fn func())
- func (g *Global) WasmReady(this js.Value, p []js.Value) any
- type Location
- type Settable
- type StackItem
- type Wrapper
- func (w *Wrapper) AddClass(c string)
- func (w *Wrapper) AppendChild(c any)
- func (w *Wrapper) Blur()
- func (w *Wrapper) Call(s string, thing any) any
- func (w *Wrapper) Click(fn func(js.Value, []js.Value) any)
- func (w *Wrapper) Event(fn func(id string))
- func (w *Wrapper) EventWithId(fn func())
- func (w *Wrapper) FireClick()
- func (w *Wrapper) FireSubmit()
- func (w *Wrapper) Focus()
- func (w *Wrapper) Get(s string) string
- func (w *Wrapper) GetAttribute(s string) string
- func (w *Wrapper) GetBool(s string) bool
- func (w *Wrapper) GetInt(s string) int
- func (w *Wrapper) GetItem(key any) string
- func (w *Wrapper) HasClass(c string) bool
- func (w *Wrapper) Hide()
- func (w *Wrapper) IsNull() bool
- func (w *Wrapper) MapOfInputs() map[string]any
- func (w *Wrapper) NoClearInputs(prefix string) map[string]any
- func (w *Wrapper) RemoveClass(c string)
- func (w *Wrapper) SelectAll(s string) []*Wrapper
- func (w *Wrapper) SelectAllByClass(s string) []*Wrapper
- func (w *Wrapper) SelectAllByQuery(call, s string) []*Wrapper
- func (w *Wrapper) Set(s string, thing any)
- func (w *Wrapper) SetItem(key, value any)
- func (w *Wrapper) Show()
Constants ¶
This section is empty.
Variables ¶
View Source
var AllTemplates map[string]any
View Source
var CustomFuncMap *template.FuncMap
View Source
var EmbeddedTemplates embed.FS
View Source
var UseLive = true
Functions ¶
func DoBearerDelete ¶
func DoBearerGet ¶
func DoBearerPatch ¶
func LoadAllTemplates ¶
func RemoveClass ¶
Types ¶
type Document ¶
func NewDocument ¶
func (*Document) ByIdString ¶
func (*Document) ByIdWrapped ¶
func (*Document) RenderAndAppend ¶
func (*Document) SelectAllFrom ¶
type Global ¶
type Global struct { Global *js.Value Document *Document LocalStorage *Wrapper Window *Wrapper Location *Location Start string Ready chan bool Space map[string]string Storage map[string]any Stack []*StackItem }
func (*Global) SetClipboard ¶
func (*Global) SubmitEvent ¶
type Location ¶
func NewLocation ¶
type Wrapper ¶
func NewWrapper ¶
func (*Wrapper) AppendChild ¶
func (*Wrapper) EventWithId ¶
func (w *Wrapper) EventWithId(fn func())
func (*Wrapper) FireSubmit ¶
func (w *Wrapper) FireSubmit()
func (*Wrapper) GetAttribute ¶
func (*Wrapper) MapOfInputs ¶
func (*Wrapper) RemoveClass ¶
func (*Wrapper) SelectAllByClass ¶
func (*Wrapper) SelectAllByQuery ¶
Click to show internal directories.
Click to hide internal directories.