2018년 3월 7일 오후 3:35
This is a version of the TaskManagementExample enhanced with the ability to drag and drop the task list to re-order them.
The list uses a the itemTemplate TaskManagementExampleDraggableTemplate tiddler, which you will also need to experiment yourself.
Outstanding tasks
//Drag the tasks to re-order them//
<<list-tagged-draggable tag:"task" subFilter:"!has[draft.of]!tag[done]" itemTemplate:"TaskManagementExampleDraggableTemplate" emptyMessage:"You don't have any active tasks">>
That renders as:
Drag the tasks to re-order them
Completed tasks
//(Listed in reverse order of completion)//
<$list filter="[!has[draft.of]tag[task]tag[done]sort[modified]]">
<div>
<$checkbox tag="done"> ~~<$link/>~~</$checkbox>
</div>
</$list>
That renders as:
(Listed in reverse order of completion)