Authors:Yoshiroh Kamiyama
Developers:Yoshiroh Kamiyama

ContentPane is a very simple and lightweight content pane to embed an HTML fragment. It can basically be regarded as a <div> element, but has ability to embed an HTML fragment and run the parser. The onLoad() handler is called when parsing is done and the content is ready.

Parameter Type Default Description
href String “” A URL of an HTML fragment to load.
content String “” HTML fragment content to load.
parseOnLoad Boolean true If true, run the parser to parse the content.
prog Boolean true If true, show a progress indicator while loading an HTML fragment specified by href.


Declarative example

<h2 data-dojo-type="">Pane1</h2>
<div id="pane1" data-dojo-type=""
     content="&lt;div data-dojo-type='' shadow='true'&gt;Thank you!&lt;/div&gt;"></div>

<h2 data-dojo-type="">Pane2</h2>
<div id="pane2" data-dojo-type=""

The content of fragment1.html is as follows:

<div data-dojo-type="" shadow="true">
  HTML fragment example
Error in the documentation? Can’t find what you are looking for? Let us know!