Comments (4)
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.
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.
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.
Thanks @jacobq ..!!It worked like a charm..
from ember-cli-materialize.
Related Issues (20)
- Fix deprecation of reliance on `parentView`
- Ember 3 support HOT 4
- Replace travis-deploy-once with Travis-CI stage
- Dependency deprecation warning: bower (npm)
- Dependency deprecation warning: ember-ajax (npm)
- Upgrade Materialize to 1.x HOT 4
- Remove ember-new-computed HOT 2
- md-radios dont work HOT 1
- Popup is not scrollable HOT 1
- Date Input not working after Chrome update HOT 3
- TypeError when closing a Modal HOT 4
- md-collapsible doesn't admit div in collapsible body HOT 2
- Documentation for implementing md-input-date with DS.attr('date')
- Is the initializer add-modals-container still needed?
- Deprecate call syntax changed in Ember 3.10
- Error "deprecate's meta information requires an "id" field" when compiling with Ember 3.6.1
- Remove dependence on jQuery
- Error with Ember v3.12: You cannot create an Ember Array with `new A()`, please update to calling A as a function: `A()`
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-cli-materialize.