Note: An alternative skin, TW4MW (work in progress), is available from the user preferences.

Dev:CreateTiddlyElement

TiddlyWiki Community Wiki

Jump to: navigation, search

The global function createTiddlyElement creates a DOM element. This function takes five parameters:

  • the parent DOM element to add the new element to
  • the type of element to create. This is a lowercase string matching the name of the HTML tag you'd like to create -- so, for example, to create a div element, you'd pass 'div'.
  • the DOM id to give the element.
  • the CSS class to give the element.
  • text to put inside the element.

Any of these parameters may be null. This function returns the created DOM element.

Personal tools