Hi Dave

> In mGSD next to each task there is an x that you can click to delete
> the task. I'd like to be able to have something like that show up in a
> foreachtiddler list, to delete the tiddler from the list.

+1
I'm also interested in this function...

I located the code in mGSD in the MgtdTagControls tiddler.
If it could be turned into a transclusion - We could use it in our
fETs :

deleteTiddler: {
handler: function(place,macroName,params,wikifier,paramString,tiddler)
{
var tiddlerToDelete = params[0];
if (store.tiddlerExists(tiddlerToDelete)) {
createTiddlyButton(place, '\u00d7', 'Delete tiddler '+tiddlerToDelete,
function(e) {
var deleteIt = true;
if (config.options.chkConfirmDelete)
deleteIt =
confirm(config.commands.deleteTiddler.warning.format([tiddlerToDelete]));
if (deleteIt) {
story.closeTiddler(tiddlerToDelete);
store.removeTiddler(tiddlerToDelete);
}
return false;
},'deleteTiddlerButton');
}
}
}

Cheers Måns Mårtensson

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to