diff --git a/dom.go b/dom.go index 0443e0e..aac3b4c 100644 --- a/dom.go +++ b/dom.go @@ -3129,3 +3129,7 @@ type DataTransfer struct{ *js.Object } func (dt *DataTransfer) GetData(format string) string { return dt.Call("getData", format).String() } + +func (dt *DataTransfer) SetData(format, data string) { + dt.Call("setData", format, data) +} diff --git a/v2/dom.go b/v2/dom.go index deaa890..bfe5206 100644 --- a/v2/dom.go +++ b/v2/dom.go @@ -3363,3 +3363,7 @@ type DataTransfer struct{ js.Value } func (dt *DataTransfer) GetData(format string) string { return dt.Call("getData", format).String() } + +func (dt *DataTransfer) SetData(format, data string) { + dt.Call("setData", format, data) +}