Select to view content in your preferred language

How to use 'scheduleRender' function in custom widgets with 4.2

1122
1
02-15-2017 07:45 AM
deleted-user-iPdcWUgWcsoy
New Contributor III

Hi at all!

We write some custom widgets with the ArcGIS API 4.2 for JavaScript. Now we want to change the ui after an identify task gives us the result. Therefore I saw the 'scheduleRender' function. Unfortunately now well documented yet.

 

So I look into the TypeScript widgets 'LayerList' and 'Print' to check how does it work. The render function returns an JSX Element but the functions called from 'scheduleRender' does not.

So my questions is, how do I have to use this function? Is it just the attributes changing that triggers a new rendering ending in 'render' function?

I appreciate any help. Thank you!

Regards

Martin

1 Reply
deleted-user-iPdcWUgWcsoy
New Contributor III

Ah, ok I see. Every time I call 'this.scheduleRender()' in my custom widget, the 'render' function executes. So I have to manage some attributes, variables and/or globals so that there will be a different result in the render function.

Is that right? Does anybody have some further hints and tips?

0 Kudos