<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div>
<p>
Click the <b>Open the Field List</b> button to trigger the
<code>fieldslistopen</code> event that outputs a message under the
component.
</p>
<p>
Click the <b>Close the Field List</b> button to trigger the
<code>fieldslistclose</code> event that outputs a message under the
component.
</p>
</div>
<button onclick="openFieldsList()">Open the Field List</button>
<button onclick="closeFieldsList()">Close the Field List</button>
<div id="pivot-container">The component will appear here</div>
<div class="output" id="output">Output will appear here</div>