I'm writing a data tiddler editor, just with add and delete. Can;'t get
delete working. Code below:
!Edit Relationship Types
----
Existing Types:
<$list filter="[[$:/_DTrelTypes]indexes[]sort[title]]" variable="key">
</$list>
''Add New:''
<$edit-text tiddler="$:/temp/EditRelTypes" field="newreltype" tag="input"
default="" class='tc-edit-texteditor' placeholder='Type a new relationship
type here'/>
<$vars newrelvar={{$:/temp/EditRelTypes!!newreltype}}>
<$button>Add Type
<$action-listops $tiddler="$:/_DTrelTypes" $index=<<newrelvar>>
$subfilter=<<newrelvar>>/>
</$button>
<$button>Delete
<$action-listops $tiddler="$:/_DTrelTypes" $subfilter="[remove[<<newrelvar
>>]]"/>
</$button>
deltiddlr: <<deltiddler>>
</$vars>
I'm happy to have my key and value the same (essentially just need a list)
Would be grateful for a steer
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/aa44d4c5-8a1a-4067-8d30-c6cd4d1e8a9a%40googlegroups.com.