This page is part of a static HTML representation of the TiddlyWiki at http://tiddlywiki.com/

BrowseWidget

28th March 2017 at 6:34pm
Widgets

Introduction

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 is usually handled 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.

AttributeDescription
multipleSet to "multiple" to select multiple file upload
tooltipOptional tooltip text
messageOptional 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.

e.g.

<$browse>

renders as: