1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-01 05:49:55 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/widgets/BrowseWidget.tid

31 lines
994 B
Plaintext
Raw Normal View History

title: BrowseWidget
created: 201310241419
2014-10-20 15:57:06 +00:00
modified: 20141020155353547
2014-09-10 23:06:19 +00:00
tags: Widgets
caption: browse
! Introduction
2014-08-28 20:43:44 +00:00
The browse widget displays an HTML file browser button that allows the user to choose one or more files to import. It sends a [[WidgetMessage: tm-import-tiddlers]] carrying a JSON representation of the tiddlers imported from the files 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 content of the `<$browse>` widget is ignored.
|!Attribute |!Description |
|multiple |Set to "multiple" to select multiple file upload |
2014-10-20 15:57:06 +00:00
|message |Optional override of widget message to be generated. The parameter for the message will be the JavaScript object `event.target.files` |
On iPhone/iPad choosing the multiple option will remove the ability to take photographs/videos directly into TiddlyWiki.
2014-10-06 16:38:12 +00:00
''e.g.''
```
<$browse>
```
renders as:
<$browse>
2014-10-20 15:57:06 +00:00