@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,
@demo
uses the html of the body minus any script tags as the HTML source. This can be changed by:id="demo-html"
or settingwindow.DEMO_HTML
to the source text.id="demo-source"
to a script tag or settingwindow.DEMO_SOURCE
to the source JS.