dom

package module
v0.0.39 Latest Latest
Warning

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

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

README

dom

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dom

type Dom struct {
	*model.Handlers
}

func New

func New(h *model.Handlers) *Dom

func (Dom) BuildUI

func (d Dom) BuildUI()

func (Dom) CallFunction added in v0.0.16

func (d Dom) CallFunction(function_name string, args ...any) (err string)

func (Dom) ElementClicking added in v0.0.38

func (d Dom) ElementClicking(querySelector string) (err string)

querySelector ej: "a[name='xxx']"

func (Dom) GetHtmlContainer added in v0.0.19

func (d Dom) GetHtmlContainer(o *model.Object) (ctn *js.Value, err string)

func (Dom) GetHtmlModule added in v0.0.15

func (d Dom) GetHtmlModule(module_name string) (out any, err string)

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) RunBootActions added in v0.0.38

func (d Dom) RunBootActions()

func (Dom) RunTests added in v0.0.38

func (d Dom) RunTests()

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{}

func (Dom) WaitFor added in v0.0.38

func (d Dom) WaitFor(milliseconds int, callback func())

WaitFor espera el número especificado de milisegundos y luego ejecuta la función de retorno de llamada.

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