How to export a component group with styles included #3799
Unanswered
edwinjoel1984
asked this question in
Q&A
Replies: 2 comments 2 replies
-
@artf Could you please help? |
Beta Was this translation helpful? Give feedback.
0 replies
-
From this version you should be able to export CSS rules by component. editor.CodeManager.getCode(component, 'css', { json: true }) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to save a group of components (components with children) in the database to later use them as drawable components within the editor, but I have not been able to save the component with their styles.
I have tried using
editor.getSelected().ToJSON()
but this only brings me the components without styles and for the styles I have tried witheditor.CodeManager.getCode (yourComponent, 'css', {cssc: editor.CssComposer})
, and I have not got any results.Any ideas on how to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions