element

package
v0.0.1-beta Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrNotImplemented ErrNotImplemented error
	ErrNotImplemented  = errors.New("Browser not implemented Node")
	ErrNotAnElement    = errors.New("Object is not an Element")
	ErrElementNoChilds = errors.New("Element has no childs")
	ErrAttributeEmpty  = errors.New("Attribute is empty")
	ErrInsertAdajacent = errors.New("Insert Adjacent failed")
)

Functions

func GetInterface

func GetInterface() js.Value

GetJSInterface get teh JS interface of broadcast channel

Types

type Element

type Element struct {
	node.Node
}

func ItemFromHTMLCollection

func ItemFromHTMLCollection(collection htmlcollection.HtmlCollection, index int) (Element, error)

func New

func New() (Element, error)

func NewFromJSObject

func NewFromJSObject(obj js.Value) (Element, error)

func OwnerElementForAttr

func OwnerElementForAttr(a attr.Attr) (Element, error)

func (Element) Attributes

func (e Element) Attributes() (namednodemap.NamedNodeMap, error)

func (Element) ChildElementCount

func (e Element) ChildElementCount() (int, error)

func (Element) Children

func (e Element) Children() (htmlcollection.HtmlCollection, error)

func (Element) ClassList

func (e Element) ClassList() (domtokenlist.DOMTokenList, error)

func (Element) ClassName

func (e Element) ClassName() (string, error)

func (Element) ClientHeight

func (e Element) ClientHeight() (int, error)

func (Element) ClientLeft

func (e Element) ClientLeft() (int, error)

func (Element) ClientTop

func (e Element) ClientTop() (int, error)

func (Element) ClientWidth

func (e Element) ClientWidth() (int, error)

func (Element) Closest

func (e Element) Closest() (Element, error)

func (Element) ComputedName

func (e Element) ComputedName() (string, error)

func (Element) ComputedRole

func (e Element) ComputedRole() (string, error)

func (Element) Element

func (e Element) Element() Element

func (Element) GetAttribute

func (e Element) GetAttribute(attributename string) (string, error)

func (Element) GetAttributeNS

func (e Element) GetAttributeNS(namespace, name string) (object.Object, error)

func (Element) GetAttributeNames

func (e Element) GetAttributeNames() (array.Array, error)

func (Element) GetBoundingClientRect

func (e Element) GetBoundingClientRect() (domrect.DOMRect, error)

func (Element) GetClientRects

func (e Element) GetClientRects() (domrectlist.DOMRectList, error)

retourne un DOMRectList

func (Element) GetElementsByClassName

func (e Element) GetElementsByClassName(classname string) (htmlcollection.HtmlCollection, error)

func (Element) GetElementsByTagName

func (e Element) GetElementsByTagName(tagname string) (nodelist.NodeList, error)

func (Element) HasAttribute

func (e Element) HasAttribute(attributename string) (bool, error)

func (Element) HasPointerCapture

func (e Element) HasPointerCapture(pointerid int) (bool, error)

func (Element) ID

func (e Element) ID() (string, error)

func (Element) InnerHTML

func (e Element) InnerHTML() (string, error)

func (Element) InsertAdjacentElement

func (e Element) InsertAdjacentElement(position string, elem Element) (Element, error)

func (Element) InsertAdjacentHTML

func (e Element) InsertAdjacentHTML(position string, textHTML string) error

func (Element) InsertAdjacentText

func (e Element) InsertAdjacentText(position string, text string) error

func (Element) LocalName

func (e Element) LocalName() (string, error)

func (Element) Matches

func (e Element) Matches(selector string) (bool, error)

func (Element) NamespaceURI

func (e Element) NamespaceURI() (string, error)

func (Element) NextElementSibling

func (e Element) NextElementSibling() (Element, error)

func (Element) OnAuxClick

func (e Element) OnAuxClick(handler func(e event.Event)) error

func (Element) OnBlur

func (e Element) OnBlur(handler func(e event.Event)) error

func (Element) OnClick

func (e Element) OnClick(handler func(e event.Event)) error

func (Element) OnCompositionEnd

func (e Element) OnCompositionEnd(handler func(e event.Event)) error

func (Element) OnCompositionStart

func (e Element) OnCompositionStart(handler func(e event.Event)) error

func (Element) OnCompositionUpdate

func (e Element) OnCompositionUpdate(handler func(e event.Event)) error

func (Element) OnContextMenu

func (e Element) OnContextMenu(handler func(e event.Event)) error

func (Element) OnCopy

func (e Element) OnCopy(handler func(e event.Event)) error

func (Element) OnCut

func (e Element) OnCut(handler func(e event.Event)) error

func (Element) OnDblClick

func (e Element) OnDblClick(handler func(e event.Event)) error

func (Element) OnError

func (e Element) OnError(handler func(e event.Event)) error

func (Element) OnFocus

func (e Element) OnFocus(handler func(e event.Event)) error

func (Element) OnFocusIn

func (e Element) OnFocusIn(handler func(e event.Event)) error

func (Element) OnFocusOut

func (e Element) OnFocusOut(handler func(e event.Event)) error

func (Element) OnFullScreenChange

func (e Element) OnFullScreenChange(handler func(e event.Event)) error

func (Element) OnFullScreenError

func (e Element) OnFullScreenError(handler func(e event.Event)) error

func (Element) OnKeyDown

func (e Element) OnKeyDown(handler func(e event.Event)) error

func (Element) OnKeyUp

func (e Element) OnKeyUp(handler func(e event.Event)) error

func (Element) OnMouseDown

func (e Element) OnMouseDown(handler func(e event.Event)) error

func (Element) OnMouseEnter

func (e Element) OnMouseEnter(handler func(e event.Event)) error

func (Element) OnMouseLeave

func (e Element) OnMouseLeave(handler func(e event.Event)) error

func (Element) OnMouseMove

func (e Element) OnMouseMove(handler func(e event.Event)) error

func (Element) OnMouseOut

func (e Element) OnMouseOut(handler func(e event.Event)) error

func (Element) OnMouseOver

func (e Element) OnMouseOver(handler func(e event.Event)) error

func (Element) OnMouseUp

func (e Element) OnMouseUp(handler func(e event.Event)) error

func (Element) OnPaste

func (e Element) OnPaste(handler func(e event.Event)) error

func (Element) OnScroll

func (e Element) OnScroll(handler func(e event.Event)) error

func (Element) OnSelect

func (e Element) OnSelect(handler func(e event.Event)) error

func (Element) OnTouchCancel

func (e Element) OnTouchCancel(handler func(e event.Event)) error

func (Element) OnTouchEnd

func (e Element) OnTouchEnd(handler func(e event.Event)) error

func (Element) OnTouchMove

func (e Element) OnTouchMove(handler func(e event.Event)) error

func (Element) OnTouchStart

func (e Element) OnTouchStart(handler func(e event.Event)) error

func (Element) OnTouchWheel

func (e Element) OnTouchWheel(handler func(e event.Event)) error

func (Element) OuterHTML

func (e Element) OuterHTML() (string, error)

func (Element) Prefix

func (e Element) Prefix() (string, error)

func (Element) PreviousElementSibling

func (e Element) PreviousElementSibling() (Element, error)

func (Element) QuerySelector

func (e Element) QuerySelector(selector string) (node.Node, error)

func (Element) QuerySelectorAll

func (e Element) QuerySelectorAll(selector string) (nodelist.NodeList, error)

func (Element) ReleasePointerCapture

func (e Element) ReleasePointerCapture(pointerid int) error

func (Element) Remove

func (e Element) Remove() error

func (Element) RemoveAttribute

func (e Element) RemoveAttribute(attrname string) error

func (Element) RemoveAttributeNS

func (e Element) RemoveAttributeNS(namespace, attrname string) error

func (Element) RequestFullscreen

func (e Element) RequestFullscreen() error

func (Element) RequestPointerLock

func (e Element) RequestPointerLock() error

func (Element) Scroll

func (e Element) Scroll(x, y int, opts ...map[string]interface{}) error

func (Element) ScrollHeight

func (e Element) ScrollHeight() (int, error)

func (Element) ScrollLeft

func (e Element) ScrollLeft() (int, error)

func (Element) ScrollTo

func (e Element) ScrollTo(x, y int, opts ...map[string]interface{}) error

func (Element) ScrollTop

func (e Element) ScrollTop() (int, error)

func (Element) ScrollWidth

func (e Element) ScrollWidth() (int, error)

func (Element) SetAttribute

func (e Element) SetAttribute(name, value string) error

func (Element) SetAttributeNS

func (e Element) SetAttributeNS(namespace, name, value string) error

func (Element) SetClassName

func (e Element) SetClassName(value string) error

func (Element) SetID

func (e Element) SetID(value string) error

func (Element) SetInnerHTML

func (e Element) SetInnerHTML(value string) error

func (Element) SetOuterHTML

func (e Element) SetOuterHTML(value string) error

func (Element) SetPointerCapture

func (e Element) SetPointerCapture(pointerid int) error

func (Element) TagName

func (e Element) TagName() (string, error)

func (Element) ToggleAttribute

func (e Element) ToggleAttribute(name string, opts ...interface{}) (bool, error)

type ElementFrom

type ElementFrom interface {
	Element() Element
}

Jump to

Keyboard shortcuts

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