Giter Club home page Giter Club logo

Comments (4)

jacobq avatar jacobq commented on July 28, 2024 1

There you go; the answer is right there in your response :)

You are not stuck using styling from ember-cli-materialize of even materialize. Look at the resulting HTML that is rendered and style it to make it look however you want. For example, pass class='inline-radio' (your own made-up class name to use for styling) to md-radios then put something like this in app/styles/app.scss:

.inline-radio > .materialize-selectable-item {
       display: inline-block;
}

Full demo here: https://github.com/jacobq/ecm-issue-651-example

from ember-cli-materialize.

jacobq avatar jacobq commented on July 28, 2024

Looking at the materialize docs, it seems that they don't currently support/demonstrate this use case. Can you share a runnable example (e.g. jsbin or codepen) just using materialize that does this?
It looks like it should work as long as you make the containing elements inline, inline-block, etc.
http://jsbin.com/tidedut/edit?html,output

As we update code to support materialize 1.0 this problem might go away. One of the things that will probably change using the block form of ember-radio-button.

from ember-cli-materialize.

jsamuel89 avatar jsamuel89 commented on July 28, 2024

Yes officially materialize doesn't support this case.But workaround is same as you have given in the bin.
Link to bin.

How do i achieve this?? (It looks like it should work as long as you make the containing elements inline, inline-block, etc).Below is my code

<div class="left-align col l2 m2">
    Currently employed
    {{#md-radios
        selection=model.currentlyemployed
        optionValuePath='id'
        optionLabelPath='Currently employed'
    }}
        {{md-radio value=1 name="Yes"}}
        {{md-radio value=2 name="No"}}
    {{/md-radios}}
</div>

from ember-cli-materialize.

jsamuel89 avatar jsamuel89 commented on July 28, 2024

Thanks @jacobq ..!!It worked like a charm..

from ember-cli-materialize.

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.