Is there a way in the filter widget (create custom filter to have the toggle off by default and then let the user apply it once an expression is set?
Solved! Go to Solution.
Gareth,
In the Filter\Widget.html make this edit (line 5 below):
data-dojo-props="checked:false"
<div class="custom-filter" data-dojo-attach-point="customFilterContainerNode">
<div class="title-part">
<span class="back-list" data-dojo-attach-event="click:_onBackToListClick"></span>
<span>${nls.customFilter}</span>
<div class="toggle-filter" data-dojo-type="jimu/dijit/ToggleButton" data-dojo-props="checked:false" title="${nls.toggleCustomFilters}" data-dojo-attach-event="change:_onCustomFilterToggle" data-dojo-attach-point="customFilterToggleButton"></div>
</div>
Gareth,
In the Filter\Widget.html make this edit (line 5 below):
data-dojo-props="checked:false"
<div class="custom-filter" data-dojo-attach-point="customFilterContainerNode">
<div class="title-part">
<span class="back-list" data-dojo-attach-event="click:_onBackToListClick"></span>
<span>${nls.customFilter}</span>
<div class="toggle-filter" data-dojo-type="jimu/dijit/ToggleButton" data-dojo-props="checked:false" title="${nls.toggleCustomFilters}" data-dojo-attach-event="change:_onCustomFilterToggle" data-dojo-attach-point="customFilterToggleButton"></div>
</div>