Open chrisdp opened 5 years ago
@georgejecook yes, exactly. There might be more to this but it would be really nice. One thing to think about on this topic would be how to handle classes with children as UI.
Would we want some sort of JSX style support or just a dedicated declaration for UI children that become the UI you would have in XML. This might even need to be another issue entirely again.
shudders
each to their own mate; but yes, I'd suggest jsx style support should be another issue. It's not my project though; but there's a reasonable argument for a node based utility class that can cross thread boundaries (as per this issue), and adding jsx style support to it, isn't a requirement for that use case, and again - considerably more work..
@georgejecook not saying we have to go that route as I'm not a fan ether. Was just the first parallel I could think of on the spot. It's really about creating a node class that would have stuff in its children node of the XML.
Perhaps we could have the XML separate as we already do and just match the class name to the component name in the XML as its UI layer for that class?
I'm actively thinking about this feature now, as I've wanted to use it several times.
My question is, do we use the generated code as straightforward codebehind, or do we still create an aa class, and have the generated node source proxy public methods to it?
Is there anyway we could do classes ether as AA out put or as Node output. I say this because internally we avoid AA's as much as possible.
The above was a response from @georgejecook
Originally posted by @chrisdp in https://github.com/TwitchBronBron/brighterscript/issues/1#issuecomment-499995224