@demo
documentjs.tags.demo
Placeholder for an application demo.
@demo SRC [HEIGHT]
/**
* @demo can/control/control.html 300
*/
Parameters
-
SRC
{String}The source of the html page.
-
HEIGHT
{Number}OptionalThe height of the html page. If a height is not provided, the height is determined as the content of the body.
Specifying the HTML and JS source
By default,
@demouses the html of the body minus any script tags as the HTML source. This can be changed by:id="demo-html"or settingwindow.DEMO_HTMLto the source text.id="demo-source"to a script tag or settingwindow.DEMO_SOURCEto the source JS.