element

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 16 Imported by: 1

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")
	ErrInsertAdjacent   = errors.New("Insert Adjacent failed")
	ErrElementNotFound  = errors.New("Element not Found")
	ErrElementsNotFound = errors.New("Elements not Found")
)

Functions

func GetInterface

func GetInterface() js.Value

GetJSInterface get the JS interface

Types

type Element

type Element struct {
	node.Node
}

func ItemFromHTMLCollection

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

func NewFromJSObject

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

func OwnerElementForAttr

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

func (Element) After

func (e Element) After(elements ...Element) error

func (Element) Animate

func (e Element) Animate(keyframes, options interface{}) error

func (Element) Append

func (e Element) Append(elements ...Element) error

func (Element) AriaAtomic

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

func (Element) AriaAutoComplete

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

func (Element) AriaBusy

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

func (Element) AriaChecked

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

func (Element) AriaColCount

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

func (Element) AriaColIndex

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

func (Element) AriaColIndexText

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

func (Element) AriaColSpan

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

func (Element) AriaCurrent

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

func (Element) AriaDescription

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

func (Element) AriaDisabled

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

func (Element) AriaExpanded

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

func (Element) AriaHasPopup

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

func (Element) AriaHidden

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

func (Element) AriaKeyShortcuts

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

func (Element) AriaLabel

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

func (Element) AriaLevel

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

func (Element) AriaLive

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

func (Element) AriaModal

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

func (Element) AriaMultiSelectable

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

func (Element) AriaMultiline

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

func (Element) AriaOrientation

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

func (Element) AriaPlaceholder

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

func (Element) AriaPosInSet

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

func (Element) AriaPressed

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

func (Element) AriaReadOnly

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

func (Element) AriaRelevant

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

func (Element) AriaRequired

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

func (Element) AriaRoleDescription

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

func (Element) AriaRowCount

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

func (Element) AriaRowIndex

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

func (Element) AriaRowIndexText

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

func (Element) AriaRowSpan

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

func (Element) AriaSelected

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

func (Element) AriaSetSize

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

func (Element) AriaSort

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

func (Element) AriaValueMax

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

func (Element) AriaValueMin

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

func (Element) AriaValueNow

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

func (Element) AriaValueText

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

func (Element) Attributes

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

func (Element) Before

func (e Element) Before(elements ...Element) 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(query string) (Element, 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) (htmlcollection.HtmlCollection, error)

func (Element) GetElementsByTagNameNS

func (e Element) GetElementsByTagNameNS(namespace, tagname string) (htmlcollection.HtmlCollection, 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) ID_

func (e Element) ID_() string

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)) (js.Func, error)

func (Element) OnBlur

func (e Element) OnBlur(handler func(e event.Event)) (js.Func, error)

func (Element) OnClick

func (e Element) OnClick(handler func(e event.Event)) (js.Func, error)

func (Element) OnCompositionEnd

func (e Element) OnCompositionEnd(handler func(e event.Event)) (js.Func, error)

func (Element) OnCompositionStart

func (e Element) OnCompositionStart(handler func(e event.Event)) (js.Func, error)

func (Element) OnCompositionUpdate

func (e Element) OnCompositionUpdate(handler func(e event.Event)) (js.Func, error)

func (Element) OnContextMenu

func (e Element) OnContextMenu(handler func(e event.Event)) (js.Func, error)

func (Element) OnCopy

func (e Element) OnCopy(handler func(e event.Event)) (js.Func, error)

func (Element) OnCut

func (e Element) OnCut(handler func(e event.Event)) (js.Func, error)

func (Element) OnDblClick

func (e Element) OnDblClick(handler func(e event.Event)) (js.Func, error)

func (Element) OnError

func (e Element) OnError(handler func(e event.Event)) (js.Func, error)

func (Element) OnFocus

func (e Element) OnFocus(handler func(e event.Event)) (js.Func, error)

func (Element) OnFocusIn

func (e Element) OnFocusIn(handler func(e event.Event)) (js.Func, error)

func (Element) OnFocusOut

func (e Element) OnFocusOut(handler func(e event.Event)) (js.Func, error)

func (Element) OnFullScreenChange

func (e Element) OnFullScreenChange(handler func(e event.Event)) (js.Func, error)

func (Element) OnFullScreenError

func (e Element) OnFullScreenError(handler func(e event.Event)) (js.Func, error)

func (Element) OnKeyDown

func (e Element) OnKeyDown(handler func(e event.Event)) (js.Func, error)

func (Element) OnKeyUp

func (e Element) OnKeyUp(handler func(e event.Event)) (js.Func, error)

func (Element) OnMouseDown

func (e Element) OnMouseDown(handler func(e event.Event)) (js.Func, error)

func (Element) OnMouseEnter

func (e Element) OnMouseEnter(handler func(e event.Event)) (js.Func, error)

func (Element) OnMouseLeave

func (e Element) OnMouseLeave(handler func(e event.Event)) (js.Func, error)

func (Element) OnMouseMove

func (e Element) OnMouseMove(handler func(e event.Event)) (js.Func, error)

func (Element) OnMouseOut

func (e Element) OnMouseOut(handler func(e event.Event)) (js.Func, error)

func (Element) OnMouseOver

func (e Element) OnMouseOver(handler func(e event.Event)) (js.Func, error)

func (Element) OnMouseUp

func (e Element) OnMouseUp(handler func(e event.Event)) (js.Func, error)

func (Element) OnPaste

func (e Element) OnPaste(handler func(e event.Event)) (js.Func, error)

func (Element) OnScroll

func (e Element) OnScroll(handler func(e event.Event)) (js.Func, error)

func (Element) OnSelect

func (e Element) OnSelect(handler func(e event.Event)) (js.Func, error)

func (Element) OnTouchCancel

func (e Element) OnTouchCancel(handler func(e event.Event)) (js.Func, error)

func (Element) OnTouchEnd

func (e Element) OnTouchEnd(handler func(e event.Event)) (js.Func, error)

func (Element) OnTouchMove

func (e Element) OnTouchMove(handler func(e event.Event)) (js.Func, error)

func (Element) OnTouchStart

func (e Element) OnTouchStart(handler func(e event.Event)) (js.Func, error)

func (Element) OnTouchWheel

func (e Element) OnTouchWheel(handler func(e event.Event)) (js.Func, error)

func (Element) OuterHTML

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

func (Element) Prefix

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

func (Element) Prepend

func (e Element) Prepend(elements ...Element) 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) SetAriaAtomic

func (e Element) SetAriaAtomic(value string) error

func (Element) SetAriaAutoComplete

func (e Element) SetAriaAutoComplete(value string) error

func (Element) SetAriaBusy

func (e Element) SetAriaBusy(value string) error

func (Element) SetAriaChecked

func (e Element) SetAriaChecked(value string) error

func (Element) SetAriaColCount

func (e Element) SetAriaColCount(value string) error

func (Element) SetAriaColIndex

func (e Element) SetAriaColIndex(value string) error

func (Element) SetAriaColIndexText

func (e Element) SetAriaColIndexText(value string) error

func (Element) SetAriaColSpan

func (e Element) SetAriaColSpan(value string) error

func (Element) SetAriaCurrent

func (e Element) SetAriaCurrent(value string) error

func (Element) SetAriaDescription

func (e Element) SetAriaDescription(value string) error

func (Element) SetAriaDisabled

func (e Element) SetAriaDisabled(value string) error

func (Element) SetAriaExpanded

func (e Element) SetAriaExpanded(value string) error

func (Element) SetAriaHasPopup

func (e Element) SetAriaHasPopup(value string) error

func (Element) SetAriaHidden

func (e Element) SetAriaHidden(value string) error

func (Element) SetAriaKeyShortcuts

func (e Element) SetAriaKeyShortcuts(value string) error

func (Element) SetAriaLabel

func (e Element) SetAriaLabel(value string) error

func (Element) SetAriaLevel

func (e Element) SetAriaLevel(value string) error

func (Element) SetAriaLive

func (e Element) SetAriaLive(value string) error

func (Element) SetAriaModal

func (e Element) SetAriaModal(value string) error

func (Element) SetAriaMultiSelectable

func (e Element) SetAriaMultiSelectable(value string) error

func (Element) SetAriaMultiline

func (e Element) SetAriaMultiline(value string) error

func (Element) SetAriaOrientation

func (e Element) SetAriaOrientation(value string) error

func (Element) SetAriaPlaceholder

func (e Element) SetAriaPlaceholder(value string) error

func (Element) SetAriaPosInSet

func (e Element) SetAriaPosInSet(value string) error

func (Element) SetAriaPressed

func (e Element) SetAriaPressed(value string) error

func (Element) SetAriaReadOnly

func (e Element) SetAriaReadOnly(value string) error

func (Element) SetAriaRelevant

func (e Element) SetAriaRelevant(value string) error

func (Element) SetAriaRequired

func (e Element) SetAriaRequired(value string) error

func (Element) SetAriaRoleDescription

func (e Element) SetAriaRoleDescription(value string) error

func (Element) SetAriaRowCount

func (e Element) SetAriaRowCount(value string) error

func (Element) SetAriaRowIndex

func (e Element) SetAriaRowIndex(value string) error

func (Element) SetAriaRowIndexText

func (e Element) SetAriaRowIndexText(value string) error

func (Element) SetAriaRowSpan

func (e Element) SetAriaRowSpan(value string) error

func (Element) SetAriaSelected

func (e Element) SetAriaSelected(value string) error

func (Element) SetAriaSetSize

func (e Element) SetAriaSetSize(value string) error

func (Element) SetAriaSort

func (e Element) SetAriaSort(value string) error

func (Element) SetAriaValueMax

func (e Element) SetAriaValueMax(value string) error

func (Element) SetAriaValueMin

func (e Element) SetAriaValueMin(value string) error

func (Element) SetAriaValueNow

func (e Element) SetAriaValueNow(value string) error

func (Element) SetAriaValueText

func (e Element) SetAriaValueText(value string) 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) SetScrollHeight

func (e Element) SetScrollHeight(value int) error

func (Element) SetScrollLeft

func (e Element) SetScrollLeft(value int) error

func (Element) SetScrollTop

func (e Element) SetScrollTop(value int) error

func (Element) SetScrollWidth

func (e Element) SetScrollWidth(value 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