Code Monkey home page Code Monkey logo

Comments (5)

msink avatar msink commented on June 2, 2024

As general direction - yes, it should support some data-binding, but I think it should be separate library.

No concrete plans for now.

from kotlin-libui.

mervyn-mccreight avatar mervyn-mccreight commented on June 2, 2024

Hello,

we (@andreas-mausch and me) would like to work on it. We already have a prototype version of this running (included in the DSL, not a separate library), but we are not sure how to test it. We found some files in the test directory, but can not make any sense of them. How can we write unit-tests for the stuff we came up with?

Our prototype is implementing the same as you can see in this vueJS example here: https://vuejs.org/v2/guide/#Handling-User-Input (app-6) -- the one with the input and the text.

from kotlin-libui.

msink avatar msink commented on June 2, 2024

About tests - test directory was here from very early days of development, and still not used.
Maybe it should be removed or cleaned - I still don't figure out how to test this correctly.

Anyway it too should wait for migration to 'multiplatform' plugin.

from kotlin-libui.

andreas-mausch avatar andreas-mausch commented on June 2, 2024

@msink Can you take a look at the changes in this branch and tell us if you like it? https://github.com/mervyn-mccreight/kotlin-libui/tree/data-binding

Just check the new examples data-binding-1 and 2 to get an impression.

It's not complete yet, and we want to rename "ModelEntry" to "Property" to be more similar to TornadoFX.
But if you in general like what we did, I would continue on implementing ObservableLists for ComboBoxes and ListViews.

from kotlin-libui.

msink avatar msink commented on June 2, 2024

I'm not competent in this area, but to me it looks overcomplicated.
Can it be just some data class, something like is done for tables?
checkbox(Data::checkbox)

Maybe more clean way could be using coroutines.

from kotlin-libui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.