The global function createTiddlyElement creates a DOM element. This function takes five parameters:
Any of these parameters may be null. This function returns the created DOM element.
- 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.