Giter Club home page Giter Club logo

Comments (6)

jdhines avatar jdhines commented on July 2, 2024 2

For me, I have to set the value property statically (to whatever value that option should have), and then as long as the property I give to groupValue can match the value then that option gets checked.

{{#radio-button
  value=1
  groupValue=model.myProp
  classNames="btn btn-default"}}
  First Option
{{/radio-button}}

from ember-radio-button.

haldiggs avatar haldiggs commented on July 2, 2024

Still hoping for an answer on this please...

from ember-radio-button.

raycohen avatar raycohen commented on July 2, 2024

Your expectation sounds correct so I'm not sure what the disconnect is.

If you checkout this repo and run ember server you can interact with the examples and maybe get an idea of what is going on for you.

If you can provide code snippets or anything else that might help me diagnose I'll give it a look.

from ember-radio-button.

gauthierm avatar gauthierm commented on July 2, 2024

I am having the same problem. I have a static value and a dynamic groupValue but no radio buttons are checked on rendering the template.

from ember-radio-button.

gauthierm avatar gauthierm commented on July 2, 2024

Okay, my issue was because my project was using https://github.com/Blooie/ember-radio-buttons which is an entirely different but similarly named ember addon. Disregard my above comment and if you are having the same problem, double check to see what addon you are using.

from ember-radio-button.

ChrizzDF avatar ChrizzDF commented on July 2, 2024

Hi guys 😃
I fell into the same problem and I solved it using ember-promise-helpers, so in my template:

...
groupValue=(await ingredients)
...

Maybe it's helpful for anyone of you! 😎

from ember-radio-button.

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.