https://kotlinlang.org logo
#data2viz
Title
# data2viz
n

Nikky

10/05/2019, 7:32 PM
SO, i am making a game using data2viz and the game itself is pretty much done, now i need to add UI around it.. as in.. things that i probably should not cram into d2v like tabs, text, dropdowns, etc... does anyone know a simple way to abstract GUI creation so i can do the same things in html/js and tornadofx without a bunch of duplicated code ?
l

louiscad

10/06/2019, 12:06 AM
Abstract possible interactions, and user input/output with an
interface
having suspending functions and regular functions.
For suspending functions, think in terms of awaiting the user to do something, like picking an item from a list, doing a particular action regarding some data (or data set), doing some single action (e.g. cancelling something that is ongoing, pressing a next button, submitting some input…)
n

Nikky

10/06/2019, 8:19 AM
i found https://github.com/lightningkite/koolui and will use it.. or try to, seems like its changing rapidly currently
g

gaetan

10/07/2019, 8:15 AM
For https://beta.data2viz.io/ I’m currently using my own implementation of redux. It seems to be a nice pattern that could be used in multiplatform code. For a first project, I would start with vanilla code before using or extracting a framework.
2 Views