1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-25 19:17:19 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/widgets/ActionDeleteTiddlerWidget.tid

43 lines
1.3 KiB
Plaintext
Raw Normal View History

2014-11-06 18:23:48 +00:00
caption: action-deletetiddler
created: 20141025120850184
modified: 20141106173455527
tags: Widgets ActionWidgets
title: ActionDeleteTiddlerWidget
type: text/vnd.tiddlywiki
! Introduction
2014-11-09 16:45:14 +00:00
The ''action-deletetiddler'' widget is an [[action widget|ActionWidgets]] that deletes tiddlers. ActionWidgets are used within triggering widgets such as the ButtonWidget.
2014-11-06 18:23:48 +00:00
There are several differences compared to the [[WidgetMessage: tm-delete-tiddler]]:
* The user is not prompted to confirm the deletion
* No automatic updating of the story list
* No special handling of draft tiddlers
! Content and Attributes
The ''action-deletetiddler'' widget is invisible. Any content within it is ignored.
|!Attribute |!Description |
2014-11-09 16:45:14 +00:00
|$tiddler |Optional title of the tiddler to be deleted |
|$filter |Optional filter identifying tiddlers to be deleted |
2014-11-06 18:23:48 +00:00
! Examples
2014-11-09 16:53:33 +00:00
Here is an example of a button that deletes the tiddler HelloThere:
2014-11-06 18:23:48 +00:00
<$macrocall $name='wikitext-example-without-html'
src='<$button>
<$action-deletetiddler $tiddler="HelloThere"/>
2014-11-09 16:53:33 +00:00
Delete "~HelloThere"
</$button>'/>
Here is an example of a button that deletes all tiddlers tagged [[TableOfContents]]:
<$macrocall $name='wikitext-example-without-html'
src='<$button>
<$action-deletetiddler $filter="[tag[TableOfContents]]"/>
Delete tiddlers tagged "~TableOfContents"
2014-11-06 18:23:48 +00:00
</$button>'/>