Domkit: Rebuilding dynamic components#57
Conversation
rcstuber
left a comment
There was a problem hiding this comment.
From the code looks like it only looks for the uiInitFunction in the super classes. Doing it like this still throws an "Missing initComponent()" error in the class constructor for me. See: https://github.com/HeapsIO/domkit/blob/1333393c1a0e079542ef70808cd8b9e1b4d9c167/domkit/Macros.hx#L437
|
@rcstuber you're right! this is actually a bug. Usually we define a base class for all domkit components which actually has |
|
The issue with this seems that if the markup needs variables passed to the constructor then the function defined through |
|
It now works for me and let's merge this very useful doc |
No description provided.