Simple edit and delete buttons for a task list

Hi guys

I just need an edit button and a delete button for a to do list. I dug around in several places and could not find how to do them.

<$list filter="[tag[Family]tag[This week]]"><span class="ltgraybk">

Button to open that tiddler

Button to delete that tiddler

</span> <$view field="title"/><br></$list>

Try this

<$button> edit {{!!title}}
   <$action-sendmessage $message=tm-edit-tiddler $param={{!!title}}/>
</$button>
<$button> delete {{!!title}}
   <$action-confirm $message={{{ [[Are you sure you want to delete]] [{!!title}] +[join[ ]] }}}>
      <$action-deletetiddler $tiddler={{!!title}}/>
   </$action-confirm>
</$button>

-e

1 Like

Thanks Eric! Here I added the “tc-btn-invisible” class to the buttons and used images for the button text, Here is the end result:


<$list filter="[tag[Resonate/HR]tag[This week]]"><$button class="tc-btn-invisible"> {{$:/core/images/edit-button}}<$action-sendmessage $message=tm-edit-tiddler $param={{!!title}}/></$button> <$button class="tc-btn-invisible"> {{$:/core/images/delete-button}}<$action-confirm $message={{{ [[Are you sure you want to delete]] [{!!title}] +[join[ ]] }}}><$action-deletetiddler $tiddler={{!!title}}/></$action-confirm></$button>&nbsp;&nbsp;&nbsp;<$view field="title"/><br></$list>