Html

package
v0.0.0-...-b665b1f Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Html

type Html struct{}

func (Html) Append

func (el Html) Append(document, element interface{})

func (Html) GetDocumentHeight

func (el Html) GetDocumentHeight(document interface{}) int

func (Html) GetDocumentWidth

func (el Html) GetDocumentWidth(document interface{}) int

func (Html) NewImage

func (el Html) NewImage(parent interface{}, propertiesList map[string]interface{}, waitLoad bool) Image

func (Html) Remove

func (el Html) Remove(document, element interface{})

type Image

type Image struct {
	// en: html parent element
	HtmlParent js.Value

	// en: list of html properties
	SetProperty map[string]interface{}

	// en: wait onLoad event to release create() method
	WaitLoad bool
	// contains filtered or unexported fields
}

en: The Image{} struct creates a new HTMLImageElement instance. It is equivalent to document.createElement('Img').

func (*Image) Create

func (el *Image) Create()

func (*Image) Get

func (el *Image) Get() js.Value

func (*Image) SetParent

func (el *Image) SetParent(parent interface{})

Jump to

Keyboard shortcuts

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