Skip to content
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

Dynamically Created Widgets #6

Open
trilogysci opened this issue Dec 28, 2019 · 1 comment
Open

Dynamically Created Widgets #6

trilogysci opened this issue Dec 28, 2019 · 1 comment

Comments

@trilogysci
Copy link

trilogysci commented Dec 28, 2019

Can you provide an example on how to dynamically add (and remove) widgets based on a widget event with their own events?
I've looked into using a toggle button event to a function which would toggle between create and destroy of a widget toggleFun :: (MomentIO (Maybe Button) -> MomentIO (Maybe Button))
with accumE (return Nothing) (toggleFun <$ toggleActivateE) with execute but got unexpected results.
How would I remove the event signals when destroying the widget?

@mr
Copy link
Owner

mr commented Dec 28, 2019

Not sure, but I haven't really tried it either. The library is very experimental so it'll might take a little creativity to get something working. If I have time I may take a look but in the meantime you're welcome to poke around the source, it's not very large.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants