The refreshTiddler method of the Story class re-renders a tiddler's source code on the page through the given template. It takes three parameters:

  • the title of the tiddler to display
  • the template to use for display. You should use either the constant DEFAULT_VIEW_TEMPLATE or DEFAULT_EDIT_TEMPLATE in most cases.
  • a boolean representing whether to force re-rendering even if the tiddler and template has not changed, or if there are unsaved changes to the tiddler.

This method returns an DOM element reference to the tiddler on the page.
Note this is a destructive event which will force the complete re-rendering of a tiddler in the story re-executing any macros within a template will be re-executed so much be used wisely.
bag
tiddlywikidev_public
created
Wed, 09 Mar 2011 12:45:48 GMT
creator
jon
modified
Thu, 10 Mar 2011 15:32:45 GMT
modifier
jon
wikiformat
mediawiki