SketchViewModel.createGraphic Returns Null?

75
1
12-15-2019 07:19 AM
JerryChen
New Contributor III

I'm trying to retrieve the graphic instance when it's being created so I can setAttribute to it then manipulate the specific graphic afterwards.

0 Kudos
1 Reply
UndralBatsukh
Esri Regular Contributor

Hi there, 

It can be done by listening to `create` event on SketchViewModel. SketchViewModel | ArcGIS API for JavaScript 4.13 

-Undral

0 Kudos