dom

package module
v0.0.42 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 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
	// contains filtered or unexported fields
}

func New

func New(h *model.Handlers, home_module string) *Dom

home_module ej:session

func (Dom) BuildUI

func (d Dom) BuildUI() (err string)

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) SelectContent added in v0.0.40

func (d Dom) SelectContent(querySelector, get_content string) (content, err string)

ej: querySelector "meta[name='JsonBootTests']" get_content: "content"

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