From ebf84b59e865f5e0a35e992b6b4fb0e1c7abe5d9 Mon Sep 17 00:00:00 2001 From: linonetwo Date: Fri, 22 Sep 2023 23:14:30 +0800 Subject: [PATCH] docs: about HistoryMechanism in dev doc --- editions/dev/tiddlers/mechanism/HistoryMechanism.tid | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 editions/dev/tiddlers/mechanism/HistoryMechanism.tid diff --git a/editions/dev/tiddlers/mechanism/HistoryMechanism.tid b/editions/dev/tiddlers/mechanism/HistoryMechanism.tid new file mode 100644 index 000000000..81379f4fc --- /dev/null +++ b/editions/dev/tiddlers/mechanism/HistoryMechanism.tid @@ -0,0 +1,8 @@ +created: 20230922141042399 +modified: 20230922141423022 +tags: +title: HistoryMechanism + +The story view is created by [[$:/core/ui/PageTemplate/story]] core page template, which uses list widget to render tiddlers. In this way, page template will reflect to history's change. + +List widget has a `history="$:/HistoryList"` parameter, that will be used in list widget's `handleHistoryChanges` method, and pass to the `this.storyview.navigateTo`, you can read [[storyview module]] for how storyview use the changed history. \ No newline at end of file