<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div>
<p>
Click the <b>Load data</b> button to trigger the
<code>loadingdata</code> event.
</p>
<p>
After successfully loading the data, the <code>dataloaded</code> event is
triggered and outputs the message under the component.
</p>
<p>
If there are any issues when loading the data, the
<code>dataerror</code> event is triggered and outputs the error message
under the component.
</p>
</div>
<button onclick="loadData()">Load data</button>
<div id="pivot-container">The component will appear here</div>
<div class="output" id="output">Output will appear here</div>