webapi: github.com/gowebapi/webapi/html/selection Index | Files

package selection

import "github.com/gowebapi/webapi/html/selection"

Package selection is upcoming selection related functionality.

Index

Package Files

doc.go selection.go

type Selection Uses

type Selection struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Selection

func SelectionFromJS Uses

func SelectionFromJS(value js.Wrapper) *Selection

SelectionFromJS is casting a js.Wrapper into Selection.

func (*Selection) AddRange Uses

func (_this *Selection) AddRange(_range *dom.Range)

func (*Selection) AnchorNode Uses

func (_this *Selection) AnchorNode() *dom.Node

AnchorNode returning attribute 'anchorNode' with type dom.Node (idl: Node).

func (*Selection) AnchorOffset Uses

func (_this *Selection) AnchorOffset() uint

AnchorOffset returning attribute 'anchorOffset' with type uint (idl: unsigned long).

func (*Selection) Collapse Uses

func (_this *Selection) Collapse(node *dom.Node, offset *uint)

func (*Selection) CollapseToEnd Uses

func (_this *Selection) CollapseToEnd()

func (*Selection) CollapseToStart Uses

func (_this *Selection) CollapseToStart()

func (*Selection) ContainsNode Uses

func (_this *Selection) ContainsNode(node *dom.Node, allowPartialContainment *bool) (_result bool)

func (*Selection) DeleteFromDocument Uses

func (_this *Selection) DeleteFromDocument()

func (*Selection) Empty Uses

func (_this *Selection) Empty()

func (*Selection) Extend Uses

func (_this *Selection) Extend(node *dom.Node, offset *uint)

func (*Selection) FocusNode Uses

func (_this *Selection) FocusNode() *dom.Node

FocusNode returning attribute 'focusNode' with type dom.Node (idl: Node).

func (*Selection) FocusOffset Uses

func (_this *Selection) FocusOffset() uint

FocusOffset returning attribute 'focusOffset' with type uint (idl: unsigned long).

func (*Selection) GetRangeAt Uses

func (_this *Selection) GetRangeAt(index uint) (_result *dom.Range)

func (*Selection) IsCollapsed Uses

func (_this *Selection) IsCollapsed() bool

IsCollapsed returning attribute 'isCollapsed' with type bool (idl: boolean).

func (*Selection) JSValue Uses

func (_this *Selection) JSValue() js.Value

func (*Selection) RangeCount Uses

func (_this *Selection) RangeCount() uint

RangeCount returning attribute 'rangeCount' with type uint (idl: unsigned long).

func (*Selection) RemoveAllRanges Uses

func (_this *Selection) RemoveAllRanges()

func (*Selection) RemoveRange Uses

func (_this *Selection) RemoveRange(_range *dom.Range)

func (*Selection) SelectAllChildren Uses

func (_this *Selection) SelectAllChildren(node *dom.Node)

func (*Selection) SetBaseAndExtent Uses

func (_this *Selection) SetBaseAndExtent(anchorNode *dom.Node, anchorOffset uint, focusNode *dom.Node, focusOffset uint)

func (*Selection) SetPosition Uses

func (_this *Selection) SetPosition(node *dom.Node, offset *uint)

func (*Selection) ToString Uses

func (_this *Selection) ToString() (_result string)

func (*Selection) Type Uses

func (_this *Selection) Type() string

Type returning attribute 'type' with type string (idl: DOMString).

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

Package selection imports 2 packages (graph) and is imported by 1 packages. Updated 2019-09-18. Refresh now. Tools for package owners.