Custom Widget: Run widget method from message action

02-22-2022 11:39 AM
New Contributor III

With the release of the new search widget, I'm updating a 'parcel identify' tool I have created to handle selection messages from search to automatically perform a lookup on the search result.  I've created the action file extending AbstractMessageAction and have it responding to the search widget.  I'm trying to figure out how best to call the main identify method I have within my widget.tsx Widget class.  Most of the action code examples I see involves updating the widget's state.  I'd rather not take this approach if possible, as I'd rather just pass the x/y coordinates to the method that already knows how to deal with them and make the action as lean as possible.

Any recommendations on how to access the widget's methods would be much appreciated.



0 Kudos
0 Replies