Refer to https://developers.arcgis.com/javascript/latest/sample-code/widgets-featuretable-map/, I loaded ESRI's FeatureTable widge into my App. What is the way to check on/off all of the rows dynamically thruough JavaScript code? Thanks if you can provide your hint.
Rene: Thanks for your response. What's the code to add/remove All of the row? Could you help?
You can select the rows using the object ids of the source layer.
https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#selectRows
// select all rows const oids = await featureTable.layer.queryObjectIds(); featureTable.selectRows(oids);
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.