Documentation ¶
Index ¶
- type Attribute
- type Component
- type Element
- func (e *Element) AddEventListener(_eventName string, _cb js.Func) error
- func (e *Element) AppendChild(_el Element)
- func (e *Element) GetAttribute(_name string) (js.Value, error)
- func (e *Element) GetProperty(_names ...string) (js.Value, error)
- func (e *Element) ID() string
- func (e *Element) SetAttribute(_compName string, vals map[string]interface{})
- func (e *Element) SetAttributes(_comps []Component) error
- func (e *Element) SetFuncProperty(_propName string, _func js.Func) error
- func (e *Element) SetValueProperty(_propName string, _val js.Value) error
- func (e *Element) String() string
- func (e *Element) Tag() string
- func (e *Element) Value() js.Value
- type WebPage
- func (wp *WebPage) CreateElementFromValue(_v js.Value) *Element
- func (wp *WebPage) CreateElementWithTag(_tag string) *Element
- func (wp *WebPage) GetElementByID(_id string) (*Element, error)
- func (wp *WebPage) GetElementByTag(_tag string) (*Element, error)
- func (wp *WebPage) LogElement(e *Element)
- func (wp *WebPage) LogError(err error)
- func (wp *WebPage) LogMessage(msg string)
- func (wp *WebPage) LogValue(_v js.Value)
- func (wp *WebPage) PageLoaded()
- func (wp *WebPage) RemoveElementByID(_id string)
- func (wp *WebPage) SetCookie(_name, _val string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct { Name string `json:"comp-name"` Vals map[string]Attribute `json:"comp-values"` }
func (*Component) Identifier ¶
type Element ¶
type Element struct {
// contains filtered or unexported fields
}
func (*Element) AddEventListener ¶
func (*Element) AppendChild ¶
func (*Element) SetAttribute ¶
func (*Element) SetAttributes ¶
func (*Element) SetFuncProperty ¶
func (*Element) SetValueProperty ¶
type WebPage ¶
type WebPage struct {
// contains filtered or unexported fields
}
func NewWebPage ¶
func NewWebPage() *WebPage
func (*WebPage) CreateElementFromValue ¶
func (*WebPage) CreateElementWithTag ¶
func (*WebPage) GetElementByTag ¶
GetElementByTag returns the first element in the document with the given tag (e.g. <div>, <a-entity>, etc.)
func (*WebPage) LogElement ¶
func (*WebPage) LogMessage ¶
func (*WebPage) PageLoaded ¶
func (wp *WebPage) PageLoaded()
func (*WebPage) RemoveElementByID ¶
Click to show internal directories.
Click to hide internal directories.