<?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 esri/dijit/Bookmarks Click Event in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-dijit-bookmarks-click-event/m-p/87402#M7917</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working with v.3.11 of the JS API and am having issues with the click event for the &lt;A href="https://developers.arcgis.com/javascript/jsapi/bookmarks-amd.html"&gt;Bookmarks&lt;/A&gt;‌ Dijit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas how to return the actual &lt;A href="https://developers.arcgis.com/javascript/jsapi/bookmarkitem-amd.html"&gt;BookmarkItem&lt;/A&gt; that was clicked in the bookmark dijit? Currently, the event returns an object that includes the whole bookmark dijit itself, which seems to defeat the purpose of a click event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate any help,&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Dec 2014 17:02:32 GMT</pubDate>
    <dc:creator>JoeJung</dc:creator>
    <dc:date>2014-12-16T17:02:32Z</dc:date>
    <item>
      <title>esri/dijit/Bookmarks Click Event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-dijit-bookmarks-click-event/m-p/87402#M7917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working with v.3.11 of the JS API and am having issues with the click event for the &lt;A href="https://developers.arcgis.com/javascript/jsapi/bookmarks-amd.html"&gt;Bookmarks&lt;/A&gt;‌ Dijit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas how to return the actual &lt;A href="https://developers.arcgis.com/javascript/jsapi/bookmarkitem-amd.html"&gt;BookmarkItem&lt;/A&gt; that was clicked in the bookmark dijit? Currently, the event returns an object that includes the whole bookmark dijit itself, which seems to defeat the purpose of a click event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate any help,&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 17:02:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-dijit-bookmarks-click-event/m-p/87402#M7917</guid>
      <dc:creator>JoeJung</dc:creator>
      <dc:date>2014-12-16T17:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: esri/dijit/Bookmarks Click Event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-dijit-bookmarks-click-event/m-p/87403#M7918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it is returning the bookmarkitem ( name and it's extent). Please look &lt;A href="http://developers.arcgis.com/javascript/samples/widget_bookmarks_dropdownbutton/" title="http://developers.arcgis.com/javascript/samples/widget_bookmarks_dropdownbutton/"&gt;Bookmark Widget(Read-only Bookmarks)&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mahtab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 18:32:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-dijit-bookmarks-click-event/m-p/87403#M7918</guid>
      <dc:creator>MahtabAlam1</dc:creator>
      <dc:date>2014-12-16T18:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: esri/dijit/Bookmarks Click Event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-dijit-bookmarks-click-event/m-p/87404#M7919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not supported in the publicly exposed API of the Bookmarks widget, you could however use a 'private' function to accomplish what you want. This might break with a new version of the API though, so use with caution.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;require(["dojo/aspect", "esri/dijit/Bookmarks"], function(aspect, Bookmarks) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; ...
&amp;nbsp;&amp;nbsp;&amp;nbsp; var bookmarkWidget = new Bookmarks(..);
&amp;nbsp;&amp;nbsp;&amp;nbsp; aspect.after(bookmarkWidget, "_onClickHandler", function(bookmarkItem) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // do something with bookmarkItem
&amp;nbsp;&amp;nbsp;&amp;nbsp; }, true);
&amp;nbsp;&amp;nbsp;&amp;nbsp; ...
});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:20:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-dijit-bookmarks-click-event/m-p/87404#M7919</guid>
      <dc:creator>HeikoHeijenga</dc:creator>
      <dc:date>2021-12-10T23:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: esri/dijit/Bookmarks Click Event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-dijit-bookmarks-click-event/m-p/87405#M7920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is just what I was looking for&lt;SPAN style="line-height: 1.5;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;Thanks for the help!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 19:50:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-dijit-bookmarks-click-event/m-p/87405#M7920</guid>
      <dc:creator>JoeJung</dc:creator>
      <dc:date>2014-12-16T19:50:27Z</dc:date>
    </item>
  </channel>
</rss>

