Data resulting from a paste or drop event.
MindDrop supports dropping and pasting text and files directly into the app. If the event is not handled directly by a target, the app will dispatch a data-insert
event containing a DataInsert
object.
Property | Type | Description |
---|---|---|
types* | string[] | The types of data which were inserted. Common types include:
|
data* | Record<string, string> | A [type]: [data] map of the insereted text data. |
files* | File[] | The inserted files. Empty if no files were inserted. |
view* | string | The ID of the view into which the data was inserted. |
resource | string | The ID of the resource the data was inserted into (such as topic). |