1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 10:29:54 +00:00

Fix links to tw.com from tw.com/dev

This commit is contained in:
Astrid Elocson 2014-12-22 13:32:46 +00:00
parent 3c6481e3d7
commit a465f19ca0

View File

@ -8,7 +8,7 @@ title: Selective Update
With [[Messages]] a widget is able to put some kind of events into the TiddlyWiki application which is one part of the dynamic behaviour of widgets.
The other part is selective updating.
Widgets are often dependant on tiddler states.
The ~ListWidget for example can be configured to list all tiddlers which are tagged with "important".
The [[ListWidget|http://tiddlywiki.com/#ListWidget]] for example can be configured to list all tiddlers which are tagged with "important".
Now, when such a tiddler is changed and it's "important" tag is removed, this change should reflect in the ~ListWidget.
To allow widgets to react on such changes, each widget can provide a function ``refresh(changedTiddlers)``.
The [[RootWidget|RootWidget and Rendering Startup]] is registered to the wiki store, using the [[Event Mechanism]]. When an change event occurs it starts to call the refresh function of its children with a list of the changed tiddlers.