<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Easier way to bind to all events &amp;quot;on&amp;quot; method in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/easier-way-to-bind-to-all-events-quot-on-quot/m-p/1276811#M80809</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Is there any &lt;STRONG&gt;simpler way&lt;/STRONG&gt; to bind to all widget events? I know we can list down all available events of the widget as below but is there any simpler method to do this?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const slider = new Slider({
          container: "pixelSlider",
          min: -3,
          max: 37,
          steps: 1,
          values: [-3, 37],
          visibleElements: {
            labels: true,
            rangeLabels: true
          }
        });

// eg. This part I want to include all the available event for slider, for now I can list down all available event
slider.on(["max-change", "segment-click", ...], allEventFunction);

function allEventFunction(e) {
   console.log(e);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 09 Apr 2023 06:02:13 GMT</pubDate>
    <dc:creator>RamaniGanason</dc:creator>
    <dc:date>2023-04-09T06:02:13Z</dc:date>
    <item>
      <title>Easier way to bind to all events "on" method</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/easier-way-to-bind-to-all-events-quot-on-quot/m-p/1276811#M80809</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Is there any &lt;STRONG&gt;simpler way&lt;/STRONG&gt; to bind to all widget events? I know we can list down all available events of the widget as below but is there any simpler method to do this?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const slider = new Slider({
          container: "pixelSlider",
          min: -3,
          max: 37,
          steps: 1,
          values: [-3, 37],
          visibleElements: {
            labels: true,
            rangeLabels: true
          }
        });

// eg. This part I want to include all the available event for slider, for now I can list down all available event
slider.on(["max-change", "segment-click", ...], allEventFunction);

function allEventFunction(e) {
   console.log(e);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Apr 2023 06:02:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/easier-way-to-bind-to-all-events-quot-on-quot/m-p/1276811#M80809</guid>
      <dc:creator>RamaniGanason</dc:creator>
      <dc:date>2023-04-09T06:02:13Z</dc:date>
    </item>
  </channel>
</rss>

