Closed
Description
Bug, feature request, or proposal:
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
What is the expected behavior?
We need some built-in means to add labels (probably, not only for md-radio-group
) when needed.
What is the current behavior?
There is no built-in way to give a label to a md-radio-group
. You have to add, lay out and style HTML label
, span
or div
by yourself.
What are the steps to reproduce?
Using a sample layout:
<label>Sort by</label>
<md-radio-group>
<md-radio-button value="1">Date</md-radio-button>
<md-radio-button value="2">Status</md-radio-button>
<md-radio-button value="3">From</md-radio-button>
<md-radio-button value="4">To</md-radio-button>
</md-radio-group>
What is the use-case or motivation for changing an existing behavior?
Many times we want to label a md-radio-group
, but don't have built-in means to do so.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
"@angular/material": "2.0.0-beta.11"