Code Monkey home page Code Monkey logo

Comments (6)

TheJuki avatar TheJuki commented on May 30, 2024

Yep. I forgot to fix that when I realized the value observer only fires when the value changes. FormPickerMultiCheckBoxElement uses the optionsSelected variable to store the options selected. Once I fix that I will need to mention in the docs to not use the value property:

 FormPickerMultiCheckBoxElement()
.setOptions(listOf("A", "B", "C"))
.addValueObserver{ _, element ->
Timber.d("Hello world!!! value: %s", element.optionsSelected)
}

from kformmaster.

dhaksddj avatar dhaksddj commented on May 30, 2024

I could not get the valueObserver to fire at all. Is that the bug? Any idea when you might have a fix?

PS Good job on the documentation.

from kformmaster.

TheJuki avatar TheJuki commented on May 30, 2024

Thanks! The valueObservers are not being fired currently. Since it is a small fix I should have it done tonight and release a new minor version.

from kformmaster.

dhaksddj avatar dhaksddj commented on May 30, 2024

Thanks so much!

from kformmaster.

TheJuki avatar TheJuki commented on May 30, 2024

I just released 4.0.0. Please update your dependency and let me know if valueObservers works for you. Please note that optionsSelected has been removed. Value should now have the options selected.

FormPickerMultiCheckBoxElement<List<String>>()
.setOptions(listOf("A", "B", "C"))
.addValueObserver{ value, element ->
Timber.d("Hello world!!! value: %s", value)
}

from kformmaster.

dhaksddj avatar dhaksddj commented on May 30, 2024

I can confirm the new changes seem to work, the listener is firing and being passed the appropriate choices.

Thanks for the speedy response!

from kformmaster.

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.