<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div>
<p>
Click the <b>Add Condition</b> button to add a conditional formatting rule
with <code>id = 1</code> for cell values.
</p>
<p>
Click the <b>Get Condition</b> button to output the conditional formatting
with <code>id = 1</code> under the component.
</p>
<p>
Click the <b>Get All Conditions</b> button to get all conditional formatting
rules in the report.
</p>
<p>The output will appear under the component.</p>
</div>
<button onclick="add()">Add condition</button>
<button onclick="getCondition()">Get condition</button>
<button onclick="getAllConditions()">Get all conditions</button>
<div id="pivot-container"></div>
<div class="output" id="output">Output will appear here</div>