<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<p>
Click the <b>Get All Fields</b> button to output all fields under the
component using the
<a href="https://www.flexmonster.com/api/getallhierarchies/" target="_blank"
>getAllHierarchies</a> method.
</p>
<button onclick="getAllHierarchies()">Get All Fields</button>
<div id="pivot-container">The component will appear here</div>
<div class="output" id="output">Output will appear here</div>