Replies: 7 comments
-
Hi there, |
Beta Was this translation helpful? Give feedback.
-
I want to write an inline tool that receives list of columns from a google sheet table (that may change), and to be able to select text and tag it with a column name. |
Beta Was this translation helpful? Give feedback.
-
I also have a use case for updating a block's configuration dynamically |
Beta Was this translation helpful? Give feedback.
-
@amitrahav I guess it's not possible at the moment, Inline tools don't have internal state yet |
Beta Was this translation helpful? Give feedback.
-
@OneLoneFox Not sure I got it. |
Beta Was this translation helpful? Give feedback.
-
That was the original idea the thing is the tabs can be created and deleted dynamically via API calls and managing several instances of the editor seems a bit heavy for updating a single config value so what I did was create a single instance and every time the user selects a tab fetch the data, clear and update the editor instance's data. But maybe you're right and my approach is not the best. |
Beta Was this translation helpful? Give feedback.
-
I believe several instances is easier to manage and would be logically correct. You can destroy instance if tab is not active (there'll be a lag because of instance loading, so you can do it only if amount of tabs is greater than N) |
Beta Was this translation helpful? Give feedback.
-
Is there a way of updating inlineTool configuration dynamically?
Beta Was this translation helpful? Give feedback.
All reactions