dom

package module
v0.0.65 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 4 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.MainHandler
	// contains filtered or unexported fields
}

func New

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

home_module ej:session

func (Dom) BuildFrontendUI added in v0.0.45

func (d Dom) BuildFrontendUI() (err string)

func (Dom) CallFunction added in v0.0.16

func (d Dom) CallFunction(NameJsFunc string, all_params ...any) (result 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) ElementFocus added in v0.0.61

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

func (*Dom) ElementsDelete added in v0.0.63

func (d *Dom) ElementsDelete(object_name string, on_server_too bool, objects_ids ...map[string]string) (err string)

func (*Dom) GetActualModule added in v0.0.58

func (d *Dom) GetActualModule() (o *model.Module, err string)

obtener modulo en uso actualmente por el usuario

func (Dom) GetHtmlModule added in v0.0.15

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

func (*Dom) GetModuleByName added in v0.0.58

func (d *Dom) GetModuleByName(module_name string) (m *model.Module, err string)

func (Dom) InnerHTML added in v0.0.19

func (d Dom) InnerHTML(querySelector, html_content string) (err string)

func (Dom) InsertAfterBegin added in v0.0.14

func (d Dom) InsertAfterBegin(querySelector, html_content string) (err string)

func (Dom) InsertBeforeEnd added in v0.0.14

func (d Dom) InsertBeforeEnd(querySelector, html_content string) (err string)

func (*Dom) KeyboardClientDisable added in v0.0.61

func (d *Dom) KeyboardClientDisable(disable bool)

func (Dom) SelectContent added in v0.0.40

func (d Dom) SelectContent(o model.SelectDomOptions) (out any, err string)

ej: querySelector "meta[name='JsonBootTests']" get_content: "content" set_after true = element.Set("content", "")

func (Dom) ToggleClass added in v0.0.61

func (d Dom) ToggleClass(elem js.Value, className string)

func (Dom) UserMessage added in v0.0.13

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

support: error,string

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