Closed verbeeksteven closed 3 years ago
It would be a bit confusing API wise to support both way IMO ?
Is there anyway to edit the existing components? Like can I add components to mj-column "registry"?
When you call the function it will append it to currently registered dependencies
@iRyusa which function are you referring to?
registerComponent(WhatEver)
That one?
You have an example in component boilerplate here : https://github.com/mjmlio/mjml-component-boilerplate/blob/master/components/MjImageText.js#L5-L9
Well shut the front door. Let's call this solved, my apologies I did not see this before. I think this method is perfectly fine.
Hello,
In the linter it loops over each component (such as
mj-column
) and confirms that the component is allowed to be there.But from what I can see there doesn't seem to be a way to say
mj-custom-component
is allowed to be placed inside amj-column
.It would be nice if there was a way to this child could be part of what parents, rather then what children a parent can have.
Thanks,