Simply put, I'm looking for a way to display Behaviour (UI Element) .
In my actual use case, a table is displayed that can be filtered. Therefore, I have a function tableElement :: String -> UI Element ( String parameter is a filter condition) and an input field filterElement :: Element that represents the filter. The most natural way to combine them is something like this:
bFilter <- stepper "" (valueChange filterElement) displaySomehow (fmap tableElement bFilter)
This is also the way this is done in Elm.
The closest I've found so far is to use sink children , but this only works with [Element] , not [UI Element] . In addition, I have to use the dummy element as a parent or violin with the remaining children.
What would be the best way to implement something like this with trpenny-gui?
ipsec source share