mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-28 19:54:38 +00:00
Lots and lots and lots of docs updates
Now we've got up-to-date skeleton documentation for all the widgets
This commit is contained in:
28
editions/tw5.com/tiddlers/widgets/DropzoneWidget.tid
Normal file
28
editions/tw5.com/tiddlers/widgets/DropzoneWidget.tid
Normal file
@@ -0,0 +1,28 @@
|
||||
title: DropzoneWidget
|
||||
created: 201310241419
|
||||
creator: JeremyRuston
|
||||
modified: 201310300837
|
||||
modifier: JeremyRuston
|
||||
tags: widget
|
||||
|
||||
! Introduction
|
||||
|
||||
The dropzone widget creates an area into which the user can drag files and other objects. It also supports pasting via the clipboard, although browser support is currently limited.
|
||||
|
||||
It sends a [[WidgetMessage: tw-import-tiddlers]] carrying a JSON representation of the tiddlers to be imported up through its parents. This message usually trapped by the NavigatorWidget which adds the tiddlers to the store and updates the story to display them.
|
||||
|
||||
! Content and Attributes
|
||||
|
||||
The dropzone widget has no attributes, and displays any contained content within the dropzone.
|
||||
|
||||
! Display
|
||||
|
||||
The dropzone widget creates an HTML `<div class="tw-dropzone">` to contain its content. During a drag operation the class `tw-dragover` is added. CSS is used to provide user feedback.
|
||||
|
||||
! Data types supported
|
||||
|
||||
The following data transfer types are supported:
|
||||
|
||||
* ''text/vnd.tiddler'' - a list of tiddlers in JSON format (this format is generated by the LinkWidget)
|
||||
* ''text/plain'' - plain text
|
||||
* ''text/uri-list'' - a list of URIs as a single tiddler
|
||||
Reference in New Issue
Block a user