dom

package module
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 6 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 {
	*formclient.FormClient
	// contains filtered or unexported fields
}

func New

func New(h *model.ModuleHandlers) *Dom

func (Dom) ActionExecutedLater added in v0.0.13

func (d Dom) ActionExecutedLater()

func (*Dom) AddModules added in v0.0.10

func (d *Dom) AddModules(modules ...*model.Module)

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 string) error

func (Dom) Clicking added in v0.0.16

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

func (Dom) ClickingNEW added in v0.0.20

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

func (Dom) GetHtmlContainer added in v0.0.19

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

func (Dom) GetHtmlModule added in v0.0.15

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

func (*Dom) GetObjectByName added in v0.0.15

func (d *Dom) GetObjectByName(name_to_search string) (*model.Object, 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) Log added in v0.0.10

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

func (Dom) UserMessage added in v0.0.13

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

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