mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-01 01:36:53 +00:00
updated #1480 "undefined value removes field or index"
when $value is unspecified, $action-setfield removes field or index... modified setText() — $:/core/modules/wiki.js invokeAction() — $:/core/modules/widgets/action-setfield demo http://tobibeer.github.io/tw/batch/#ActionSetField-RemoveIndex
This commit is contained in:
@@ -17,7 +17,7 @@ The ''action-setfield'' widget is invisible. Any content within it is ignored.
|
||||
|$tiddler |The title of the tiddler whose fields are to be modified (if not provided defaults to the [[current tiddler|Current Tiddler]] |
|
||||
|$field |Optional name of a field to be assigned the $value attribute |
|
||||
|$index |Optional index of a property in a [[data tiddler|DataTiddlers]] to be assigned the $value attribute|
|
||||
|$value |The value to be assigned to the field or index identified by the $field or $index attribute. If neither is specified then the value is assigned to the text field |
|
||||
|$value |The value to be assigned to the field or index identified by the $field or $index attribute. If neither is specified then the value is assigned to the text field. If no value is specified, $field or $index are being deleted.|
|
||||
|$timestamp |Specifies whether the timestamp(s) of the target tiddler will be updated (''modified'' and ''modifier'', plus ''created'' and ''creator'' for newly created tiddlers). Can be "yes" (the default) or "no" |
|
||||
|//{any attributes not starting with $}// |Each attribute name specifies a field to be modified with the attribute value providing the value to assign to the field |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user