-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Widget conversion helper methods #7823
Comments
Big 👍 from me. Adding this to the DX squad's backlog. This way or another we should simplify this. |
Related feature: #1012. |
Question: How to enhance Another idea: expose it on the Widget plugin. Things to remember:
|
conversion.for().add( widget.elementToWidget() )
// or import
conversion.for().add( elementToWidget() ) |
In #1012 I'm discussing with myself whether |
Depends on the outcome of #667. |
The verbosity of this is a problem: you need to create three conversions for each element on your widget, which can easily become a nightmare (imagine a widget with 5,6,7 elements! that's up to 21 conversions to write and maintain...) Huge +1 to any kind of helper, automation or any other way to write the same on a more structured, less repetitive way. |
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue. |
We've closed your issue due to inactivity over the last year. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it). |
I want to create
card
bootstrap widget (https://getbootstrap.com/docs/4.5/components/card/).If I want to create widget out of it I need to change my convertion and from this:
I have to write this:
There is much repetition.
I think that helper functions should be introduced like:
elementToWidget(config, editor);
// if editor is neededelementToWidgetEditable(config, editor);
The text was updated successfully, but these errors were encountered: