2014-11-10 20:59:15 +00:00
|
|
|
title: $:/core/macros/export
|
|
|
|
tags: $:/tags/Macro
|
|
|
|
|
2014-11-22 14:19:10 +00:00
|
|
|
\define exportButtonFilename(baseFilename)
|
|
|
|
$baseFilename$$(extension)$
|
|
|
|
\end
|
|
|
|
|
|
|
|
\define exportButton(exportFilter:"[!is[system]sort[title]]",lingoBase,baseFilename:"tiddlers")
|
2014-11-21 17:07:03 +00:00
|
|
|
<span class="tc-popup-keep">
|
2014-11-10 20:59:15 +00:00
|
|
|
<$button popup=<<qualify "$:/state/popup/export">> tooltip={{$lingoBase$Hint}} aria-label={{$lingoBase$Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
|
|
|
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
|
|
|
{{$:/core/images/export-button}}
|
|
|
|
</$list>
|
|
|
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
|
|
|
<span class="tc-btn-text"><$text text={{$lingoBase$Caption}}/></span>
|
|
|
|
</$list>
|
|
|
|
</$button>
|
2014-11-21 17:07:03 +00:00
|
|
|
</span>
|
2014-11-10 20:59:15 +00:00
|
|
|
<$reveal state=<<qualify "$:/state/popup/export">> type="popup" position="below" animate="yes">
|
|
|
|
<div class="tc-drop-down">
|
|
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Exporter]]">
|
2014-11-22 14:19:10 +00:00
|
|
|
<$set name="extension" value={{!!extension}}>
|
2014-11-10 20:59:15 +00:00
|
|
|
<$button class="tc-btn-invisible">
|
2014-11-22 14:19:10 +00:00
|
|
|
<$action-sendmessage $message="tm-download-file" $param=<<currentTiddler>> exportFilter="""$exportFilter$""" filename=<<exportButtonFilename """$baseFilename$""">>/>
|
2014-11-10 20:59:15 +00:00
|
|
|
<$action-deletetiddler $tiddler=<<qualify "$:/state/popup/export">>/>
|
|
|
|
<$transclude field="description"/>
|
|
|
|
</$button>
|
|
|
|
</$set>
|
|
|
|
</$list>
|
|
|
|
</div>
|
|
|
|
</$reveal>
|
|
|
|
\end
|