Custom palette from server

Hi. I made a custom palette. But my task is to get data from the server and form a palette based on this data. I can’t figure out how to do it.

A palette is customized through a provider, and for the dynamic loading case you can either:

  • Update the palette once data is fetched using Palette#_rebuild (internal, use at own risk!)
  • Wait for external contents to be loaded, and then instantiate your editor with that custom palette description

So the answer really depends on what you’d like to accomplish.

Thank you so much for your help. Please help me with another question. I tried the examples and . But they don’t suit me. I need to expand the example and to make several input fields is not dynamic as in the example , and it is static, but I can’t figure out how to achieve this in any way. For example, a field for entering Spell and Spell2. Maybe there is a link to a working example?