filter widget

688
1
Jump to solution
01-09-2019 01:25 PM
GarethYoung1
New Contributor III

Robert Scheitlin, GISP

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?

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

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>‍‍‍‍‍‍

View solution in original post

1 Reply
RobertScheitlin__GISP
MVP Emeritus

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>‍‍‍‍‍‍