webapi: github.com/gowebapi/webapi/clipboard Index | Files

package clipboard

import "github.com/gowebapi/webapi/clipboard"

Package clipboard control the clipboard

Index

Package Files

clipboard.go doc.go

Constants

const ReadPermissionName = "clipboard-read"

Permission name to use for reading the clipboard.

const WritePermissionname = "clipboard-write"

Permission name to use for writing the clipboard.

Note: there is no relation ship between the permission names, they are according to specification, two different permissions with no inherent strength relationship. The browser may apply differet rules.

type Clipboard Uses

type Clipboard struct {
    domcore.EventTarget
}

class: Clipboard

func ClipboardFromJS Uses

func ClipboardFromJS(value js.Wrapper) *Clipboard

ClipboardFromJS is casting a js.Wrapper into Clipboard.

func (*Clipboard) Read Uses

func (_this *Clipboard) Read() (_result *datatransfer.PromiseDataTransfer)

func (*Clipboard) ReadText Uses

func (_this *Clipboard) ReadText() (_result *javascript.PromiseString)

func (*Clipboard) Write Uses

func (_this *Clipboard) Write(data *datatransfer.DataTransfer) (_result *javascript.PromiseVoid)

func (*Clipboard) WriteText Uses

func (_this *Clipboard) WriteText(data string) (_result *javascript.PromiseVoid)

type ClipboardEvent Uses

type ClipboardEvent struct {
    domcore.Event
}

class: ClipboardEvent

func ClipboardEventFromJS Uses

func ClipboardEventFromJS(value js.Wrapper) *ClipboardEvent

ClipboardEventFromJS is casting a js.Wrapper into ClipboardEvent.

func NewClipboardEvent Uses

func NewClipboardEvent(_type string, eventInitDict *ClipboardEventInit) (_result *ClipboardEvent)

func (*ClipboardEvent) ClipboardData Uses

func (_this *ClipboardEvent) ClipboardData() *datatransfer.DataTransfer

ClipboardData returning attribute 'clipboardData' with type datatransfer.DataTransfer (idl: DataTransfer).

type ClipboardEventInit Uses

type ClipboardEventInit struct {
    Bubbles       bool
    Cancelable    bool
    Composed      bool
    ClipboardData *datatransfer.DataTransfer
}

dictionary: ClipboardEventInit

func ClipboardEventInitFromJS Uses

func ClipboardEventInitFromJS(value js.Wrapper) *ClipboardEventInit

ClipboardEventInitFromJS is allocating a new ClipboardEventInit object and copy all values from input javascript object

func (*ClipboardEventInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type ClipboardPermissionDescriptor Uses

type ClipboardPermissionDescriptor struct {
    Name                string
    AllowWithoutGesture bool
}

dictionary: ClipboardPermissionDescriptor

func ClipboardPermissionDescriptorFromJS Uses

func ClipboardPermissionDescriptorFromJS(value js.Wrapper) *ClipboardPermissionDescriptor

ClipboardPermissionDescriptorFromJS is allocating a new ClipboardPermissionDescriptor object and copy all values from input javascript object

func (*ClipboardPermissionDescriptor) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

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 clipboard imports 4 packages (graph) and is imported by 4 packages. Updated 2019-09-21. Refresh now. Tools for package owners.