<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div>
<h2>Example with the distinguishNullUndefinedEmpty option</h2>
<p>
By default, the component treats <code>null</code>, <code>undefined</code>,
and empty string (<code>""</code>) values as the same. Set the
<code>distinguishNullUndefinedEmpty</code> option to <code>true</code>, so
that these values are treated distinctly. Learn more about
<a href="https://www.flexmonster.com/doc/options/" target="_blank"
>Flexmonster's options</a>.
</p>
<p>
Using the switch below you can set the
<a
target="_blank"
href="https://www.flexmonster.com/api/options-object/#distinguishnullundefinedempty"
>distinguishNullUndefinedEmpty</a> to <code>true</code> or <code>false</code>.
</p>
</div>
<div class="switch-container compact">
<label class="switch">
<input
type="checkbox"
id="distinguishCheckbox"
onclick="toggleDistinguishNullUndefinedEmpty()"
/>
<span class="slider round"></span>
</label>
<span class="text" id="currentSetting">
<code>distinguishNullUndefinedEmpty</code> is set to <code>false</code>.
</span>
</div>
<div id="pivot-container">The component will appear here</div>