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

package datatransfer

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

Package datatransfer is the data part in drag and drop

Index

Package Files

datatransfer.go doc.go

type DataTransfer Uses

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

class: DataTransfer

func DataTransferFromJS Uses

func DataTransferFromJS(value js.Wrapper) *DataTransfer

DataTransferFromJS is casting a js.Wrapper into DataTransfer.

func NewDataTransfer Uses

func NewDataTransfer() (_result *DataTransfer)

func (*DataTransfer) ClearData Uses

func (_this *DataTransfer) ClearData(format *string)

func (*DataTransfer) DropEffect Uses

func (_this *DataTransfer) DropEffect() string

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

func (*DataTransfer) EffectAllowed Uses

func (_this *DataTransfer) EffectAllowed() string

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

func (*DataTransfer) Files Uses

func (_this *DataTransfer) Files() *file.FileList

Files returning attribute 'files' with type file.FileList (idl: FileList).

func (*DataTransfer) GetData Uses

func (_this *DataTransfer) GetData(format string) (_result string)

func (*DataTransfer) Items Uses

func (_this *DataTransfer) Items() *DataTransferItemList

Items returning attribute 'items' with type DataTransferItemList (idl: DataTransferItemList).

func (*DataTransfer) JSValue Uses

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

func (*DataTransfer) SetData Uses

func (_this *DataTransfer) SetData(format string, data string)

func (*DataTransfer) SetDragImage Uses

func (_this *DataTransfer) SetDragImage(image *dom.Element, x int, y int)

func (*DataTransfer) SetDropEffect Uses

func (_this *DataTransfer) SetDropEffect(value string)

SetDropEffect setting attribute 'dropEffect' with type string (idl: DOMString).

func (*DataTransfer) SetEffectAllowed Uses

func (_this *DataTransfer) SetEffectAllowed(value string)

SetEffectAllowed setting attribute 'effectAllowed' with type string (idl: DOMString).

func (*DataTransfer) Types Uses

func (_this *DataTransfer) Types() *javascript.FrozenArray

Types returning attribute 'types' with type javascript.FrozenArray (idl: FrozenArray).

type DataTransferItem Uses

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

class: DataTransferItem

func DataTransferItemFromJS Uses

func DataTransferItemFromJS(value js.Wrapper) *DataTransferItem

DataTransferItemFromJS is casting a js.Wrapper into DataTransferItem.

func (*DataTransferItem) GetAsFile Uses

func (_this *DataTransferItem) GetAsFile() (_result *file.File)

func (*DataTransferItem) GetAsString Uses

func (_this *DataTransferItem) GetAsString(callback *draganddrop.FunctionStringCallback)

func (*DataTransferItem) JSValue Uses

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

func (*DataTransferItem) Kind Uses

func (_this *DataTransferItem) Kind() string

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

func (*DataTransferItem) Type Uses

func (_this *DataTransferItem) Type() string

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

func (*DataTransferItem) WebkitGetAsEntry Uses

func (_this *DataTransferItem) WebkitGetAsEntry() (_result *entries.FileSystemEntry)

type DataTransferItemList Uses

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

class: DataTransferItemList

func DataTransferItemListFromJS Uses

func DataTransferItemListFromJS(value js.Wrapper) *DataTransferItemList

DataTransferItemListFromJS is casting a js.Wrapper into DataTransferItemList.

func (*DataTransferItemList) Add Uses

func (_this *DataTransferItemList) Add(data string, _type string) (_result *DataTransferItem)

func (*DataTransferItemList) Add2 Uses

func (_this *DataTransferItemList) Add2(data *file.File) (_result *DataTransferItem)

func (*DataTransferItemList) Clear Uses

func (_this *DataTransferItemList) Clear()

func (*DataTransferItemList) Index Uses

func (_this *DataTransferItemList) Index(index uint) (_result *DataTransferItem)

func (*DataTransferItemList) JSValue Uses

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

func (*DataTransferItemList) Length Uses

func (_this *DataTransferItemList) Length() uint

Length returning attribute 'length' with type uint (idl: unsigned long).

func (*DataTransferItemList) Remove Uses

func (_this *DataTransferItemList) Remove(index uint)

type PromiseDataTransfer Uses

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

class: Promise

func PromiseDataTransferFromJS Uses

func PromiseDataTransferFromJS(value js.Wrapper) *PromiseDataTransfer

PromiseDataTransferFromJS is casting a js.Wrapper into PromiseDataTransfer.

func (*PromiseDataTransfer) Catch Uses

func (_this *PromiseDataTransfer) Catch(onRejected *PromiseDataTransferOnRejected) (_result *PromiseDataTransfer)

func (*PromiseDataTransfer) Finally Uses

func (_this *PromiseDataTransfer) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseDataTransfer)

func (*PromiseDataTransfer) JSValue Uses

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

func (*PromiseDataTransfer) Then Uses

func (_this *PromiseDataTransfer) Then(onFulfilled *PromiseDataTransferOnFulfilled, onRejected *PromiseDataTransferOnRejected) (_result *PromiseDataTransfer)

type PromiseDataTransferOnFulfilled Uses

type PromiseDataTransferOnFulfilled js.Func

PromiseDataTransferOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseDataTransferOnFulfilledToJS Uses

func PromiseDataTransferOnFulfilledToJS(callback PromiseDataTransferOnFulfilledFunc) *PromiseDataTransferOnFulfilled

type PromiseDataTransferOnFulfilledFunc Uses

type PromiseDataTransferOnFulfilledFunc func(value *DataTransfer)

callback: PromiseTemplateOnFulfilled

func PromiseDataTransferOnFulfilledFromJS Uses

func PromiseDataTransferOnFulfilledFromJS(_value js.Value) PromiseDataTransferOnFulfilledFunc

type PromiseDataTransferOnRejected Uses

type PromiseDataTransferOnRejected js.Func

PromiseDataTransferOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseDataTransferOnRejectedToJS Uses

func PromiseDataTransferOnRejectedToJS(callback PromiseDataTransferOnRejectedFunc) *PromiseDataTransferOnRejected

type PromiseDataTransferOnRejectedFunc Uses

type PromiseDataTransferOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseDataTransferOnRejectedFromJS Uses

func PromiseDataTransferOnRejectedFromJS(_value js.Value) PromiseDataTransferOnRejectedFunc

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 datatransfer imports 6 packages (graph) and is imported by 2 packages. Updated 2019-10-13. Refresh now. Tools for package owners.