dom

package module
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: MIT Imports: 3 Imported by: 1

README

dom

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHtmlModule added in v0.0.37

func GetHtmlModule(module_name string) (*js.Value, error)

Types

type Dom

func New

func New(h *model.Handlers) (*Dom, error)

func (Dom) ActionExecutedLater added in v0.0.13

func (d Dom) ActionExecutedLater()

func (Dom) BuildUI

func (d Dom) BuildUI()

func (Dom) CallFunction added in v0.0.16

func (d Dom) CallFunction(functionName string, args ...any) error

func (Dom) ClickModule

func (d Dom) ClickModule(module_name string) error

func (Dom) Clicking added in v0.0.16

func (d Dom) Clicking(o *model.Object, id string) error

func (Dom) GetHtmlContainer added in v0.0.19

func (d Dom) GetHtmlContainer(o *model.Object) (*js.Value, error)

func (Dom) InnerHTML added in v0.0.19

func (d Dom) InnerHTML(html_content string, o *model.Object)

func (Dom) InsertAfterBegin added in v0.0.14

func (d Dom) InsertAfterBegin(html_content string, o *model.Object)

func (Dom) InsertBeforeEnd added in v0.0.14

func (d Dom) InsertBeforeEnd(html_content string, o *model.Object)

func (Dom) UserMessage added in v0.0.13

func (d Dom) UserMessage(message ...any) interface{}

support: error,string

func (Dom) UserViewComponentClicked added in v0.0.16

func (d Dom) UserViewComponentClicked(this js.Value, source_input []js.Value) interface{}

type HtmlElement

type HtmlElement struct {
	Container js.Value
	Name      string //ej: div,li
	Id        string //ej: 234
	Class     string // ej: .css-class
	Content   string // ej: <h1>hello</h1>
}

func (HtmlElement) Add

func (e HtmlElement) Add()

Jump to

Keyboard shortcuts

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