Replies: 1 comment 6 replies
-
Do you have an example of your case? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have to put a custom component inside my page let call it registration-form.
The HTML of the component can change from time to time and is generated server-side.
My custom registration-form component replaces the innerHTML of its view with the HTML received from an asynchronous request to the server when the corresponding block is dropped in the canvas.
Although the HTML of the custom registration-form component can change it will always contain a div whose inner HTML is the title of the form.
I would like to allow grapes editor to manipulate that title (with style manager and traits manager ie.) creating a new component whose view has to be the title itself.
That component has to live only for the time I'm editing the page, before the page is stored I will manipulate the model of the registration-form so that the content information and all the styles information related to the title can be stored as attributes (or properties) of the registration-form.
My question is: how can I create such a detached Component? I can't find an API call to do that.
Beta Was this translation helpful? Give feedback.
All reactions