The createTiddler method of the Story Class opens a tiddler on the page. If a tiddler by the requested name doesn't exist, it appears ready to edit. This method takes four parameters:
This method returns the newly created DOM element.
- the overall parent DOM element to display the tiddler inside.
- the DOM element inside the first parameter to display directly after. A null value places it at the end of the entire element.
- the title of the tiddler to display.
- the template to use to display the tiddler. It should be either the constant DEFAULT_VIEW_TEMPLATE or DEFAULT_EDIT_TEMPLATE.
This method returns the newly created DOM element.