Documentation ¶
Overview ¶
Package selection is upcoming selection related functionality.
Index ¶
- type Selection
- func (_this *Selection) AddRange(_range *dom.Range)
- func (_this *Selection) AnchorNode() *dom.Node
- func (_this *Selection) AnchorOffset() uint
- func (_this *Selection) Collapse(node *dom.Node, offset *uint)
- func (_this *Selection) CollapseToEnd()
- func (_this *Selection) CollapseToStart()
- func (_this *Selection) ContainsNode(node *dom.Node, allowPartialContainment *bool) (_result bool)
- func (_this *Selection) DeleteFromDocument()
- func (_this *Selection) Empty()
- func (_this *Selection) Extend(node *dom.Node, offset *uint)
- func (_this *Selection) FocusNode() *dom.Node
- func (_this *Selection) FocusOffset() uint
- func (_this *Selection) GetRangeAt(index uint) (_result *dom.Range)
- func (_this *Selection) IsCollapsed() bool
- func (_this *Selection) JSValue() js.Value
- func (_this *Selection) RangeCount() uint
- func (_this *Selection) RemoveAllRanges()
- func (_this *Selection) RemoveRange(_range *dom.Range)
- func (_this *Selection) SelectAllChildren(node *dom.Node)
- func (_this *Selection) SetBaseAndExtent(anchorNode *dom.Node, anchorOffset uint, focusNode *dom.Node, focusOffset uint)
- func (_this *Selection) SetPosition(node *dom.Node, offset *uint)
- func (_this *Selection) ToString() (_result string)
- func (_this *Selection) Type() string
- type Union
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Selection ¶
class: Selection
func SelectionFromJS ¶
SelectionFromJS is casting a js.Wrapper into Selection.
func (*Selection) AnchorNode ¶
AnchorNode returning attribute 'anchorNode' with type dom.Node (idl: Node).
func (*Selection) AnchorOffset ¶
AnchorOffset returning attribute 'anchorOffset' with type uint (idl: unsigned long).
func (*Selection) CollapseToEnd ¶
func (_this *Selection) CollapseToEnd()
func (*Selection) CollapseToStart ¶
func (_this *Selection) CollapseToStart()
func (*Selection) ContainsNode ¶
func (*Selection) DeleteFromDocument ¶
func (_this *Selection) DeleteFromDocument()
func (*Selection) FocusNode ¶
FocusNode returning attribute 'focusNode' with type dom.Node (idl: Node).
func (*Selection) FocusOffset ¶
FocusOffset returning attribute 'focusOffset' with type uint (idl: unsigned long).
func (*Selection) IsCollapsed ¶
IsCollapsed returning attribute 'isCollapsed' with type bool (idl: boolean).
func (*Selection) RangeCount ¶
RangeCount returning attribute 'rangeCount' with type uint (idl: unsigned long).
func (*Selection) RemoveAllRanges ¶
func (_this *Selection) RemoveAllRanges()
func (*Selection) RemoveRange ¶
func (*Selection) SelectAllChildren ¶
func (*Selection) SetBaseAndExtent ¶
Click to show internal directories.
Click to hide internal directories.