Async data call inside of properties panel for selectBox

Hi,

I like to get data with API call and render them inside of a select box in the properties panel. (for example, a user should select role which data come from the database)

So I have searched the forum, I saw some topics about issue but none of them give any clear response and they are old.

So, how can you handle async calls inside of properties panel?

:warning: This is not a stable API and may change any time in the future.

There is a way to dynamically load data with custom entries by providing EntryDescriptor#setControlValue. Inside setControlValue you have full access to an entries HTML, i.e. to lazy load data.

See PropertiesPanel for the place where the stuff is invoked.

The solution was mentioned here, originally.