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")
|
2017-07-12 15:47:52 +00:00
|
|
|
<span class="tc-popup-keep"><$button popup=<<qualify "$:/state/popup/export">> tooltip={{$lingoBase$Hint}} aria-label={{$lingoBase$Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
|
2019-07-31 08:30:16 +00:00
|
|
|
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
|
2014-11-10 20:59:15 +00:00
|
|
|
{{$:/core/images/export-button}}
|
|
|
|
</$list>
|
2019-07-31 08:30:16 +00:00
|
|
|
<$list filter="[<tv-config-toolbar-text>match[yes]]">
|
2014-11-10 20:59:15 +00:00
|
|
|
<span class="tc-btn-text"><$text text={{$lingoBase$Caption}}/></span>
|
|
|
|
</$list>
|
2017-07-12 15:47:52 +00:00
|
|
|
</$button></span><$reveal state=<<qualify "$:/state/popup/export">> type="popup" position="below" animate="yes">
|
2014-11-10 20:59:15 +00:00
|
|
|
<div class="tc-drop-down">
|
2020-12-08 17:48:58 +00:00
|
|
|
<$set name="count" value={{{ [subfilter<__exportFilter__>count[]] }}}>
|
2014-11-10 20:59:15 +00:00
|
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Exporter]]">
|
2020-12-08 17:48:58 +00:00
|
|
|
<$list filter="[<currentTiddler>has[condition]subfilter{!!condition}limit[1]] ~[<currentTiddler>!has[condition]then[true]]" variable="ignore">
|
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">
|
2020-09-28 10:31:33 +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>
|
2020-12-08 17:48:58 +00:00
|
|
|
</$list>
|
|
|
|
</$set>
|
2014-11-10 20:59:15 +00:00
|
|
|
</div>
|
|
|
|
</$reveal>
|
|
|
|
\end
|