|
POST
|
Hi Ben, Can you post a link to the specific documentation page that you are talking about? (Is it this: https://developers.arcgis.com/javascript/jsapi/featurelayer-amd.html#event-graphic-add ?) I assume you meant the 'graphic-add' event for FeatureLayer, which returns both the 'graphic' and 'target' inside a single object, as you stated. In this case, the documentation is incorrect and I've opened a ticket to get it fixed. Thanks! *edit I noticed this snippet on the page I linked: "All On Style event listeners receive a single event object. The event properties listed below are accessed from this event object. Additionally, the event object also contains a 'target' property whose value is the object which fired the event." It looks like this is intended.
... View more
02-04-2014
11:41 AM
|
0
|
0
|
808
|
|
POST
|
From this page http://dojotoolkit.org/reference-guide/1.9/quickstart/writingWidgets.html : "data-dojo-attach-point and data-dojo-attach-event are documented in detail on the dijit._TemplatedMixin page, but the important thing to note is that data-dojo-attach-event sets up a listener for events on the DOM nodes, and data-dojo-attach-point sets up a pointer to the DOM nodes." http://dojotoolkit.org/reference-guide/1.9/dijit/_TemplatedMixin.html#dijit-templatedmixin You can always edit the TOC widget to generate ids on particular elements if you desire. However, you may not need IDs since you have a reference to the widget and subsequently, its children. (Also note that you have a reference to that span internally using the provided data-dojo-attach-point")
... View more
02-04-2014
10:03 AM
|
0
|
0
|
685
|
|
POST
|
It should be working. Let me double check on this and get back to you. If anything changes, please let me know.
... View more
02-04-2014
09:06 AM
|
0
|
0
|
1779
|
|
POST
|
No problem! While I haven't had to do specifically what you are asking, I do know that you'll have to use width:auto; on your description column. You might have to assume a maximum width for at least one column, which would let the others resize dynamically based on the remaining viewport width.
... View more
02-04-2014
08:07 AM
|
0
|
0
|
2427
|
|
POST
|
Hi Michelle I have some time to take a look at your code. In the future, you should use http://jsfiddle.net to generate a working, live sample. It makes debugging much easier.
... View more
02-04-2014
07:40 AM
|
0
|
0
|
1910
|
|
POST
|
Using API 3.8 causes some bugs. e.g. at dojo.require("dijit.dijit"); Please take some time to read the JSAPI documentation before making threads like this. Thank you. @Jeff Thank you for your insight. +1
... View more
02-04-2014
07:31 AM
|
0
|
0
|
1231
|
|
POST
|
Here is an article from Sitepen regarding CSS styling of dgrid: https://www.sitepen.com/blog/2012/05/03/css-styling-of-dgrid/ If this doesn't answer your question, you might want to refer to the dgrid help page, since this isn't a specific JSAPI question: http://dojotoolkit.org/community/
... View more
02-04-2014
07:24 AM
|
0
|
0
|
2427
|
|
POST
|
Awesome!! I'm glad it works. Let me know if any issues arise 😃
... View more
01-23-2014
11:12 AM
|
0
|
0
|
829
|
|
POST
|
http://jsfiddle.net/9VKCy/1/ This should be a good start. Please read the documentation concerning webmaps. If you still have any questions, let me know.
... View more
01-23-2014
08:47 AM
|
0
|
0
|
906
|
|
POST
|
Remove this:
map = new Map("mapDiv", {
basemap: "topo",
center: [-77.4329, 37.5410],
zoom: 7,
slider: true
});
You are already creating your map using response.map 😃 After removing this code, I see your webmap and what appear to be streams/rivers, colored with purple.
... View more
01-23-2014
08:24 AM
|
0
|
0
|
906
|
|
POST
|
Absolutely. From the sample you posted, you can change the names by changing attributes for: layoutTemplate[0].choiceList or templateNames For example: layoutTemplate[0].choiceList[0] = "Landscape"; OR templateNames[0] = "Landscape"; Hope this helps.
... View more
01-23-2014
08:08 AM
|
0
|
0
|
829
|
|
POST
|
Actually, I think Jeff is right! I wrongfully assumed measureDialog was a reference to the dijit from lack of context. A reference to the dijit is not the same thing as a reference to its domNode. Thanks Jeff!
... View more
01-23-2014
07:12 AM
|
0
|
0
|
1516
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-26-2014 09:56 AM | |
| 1 | 09-18-2014 11:50 AM | |
| 1 | 09-19-2014 11:28 AM | |
| 1 | 07-09-2014 01:43 PM | |
| 1 | 07-09-2014 02:05 PM |
| Online Status |
Offline
|
| Date Last Visited |
08-14-2024
05:31 PM
|