HTML Code:
Code: Select all
<script>
var myCalendar = new funkyCalendar('today'); myCalendar.render();
</script>XHTML Code:
Code: Select all
<funkyCalendar selectedDate='today' />I am creating a JavaScript library with skinnable UI components, and would like to use custom tags to instantiate the controls. More examples of what I am aiming for:
XHTML Code instantiating a funkyList control with funkyListItem items:
Code: Select all
<h1>Please select your favourate fruit :</h1>
<funkylist>
<funkylistitem>Apples</funkylistitem>
<funkylistitem>Bananas</funkylistitem>
...
<funkylistitem>Oranges</funkylistitem>
<funkybutton action="submit">Click Me</funkyButton>