Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support hint text with select #2498

Closed
jt-helsinki opened this issue Jan 2, 2017 · 8 comments
Closed

Support hint text with select #2498

jt-helsinki opened this issue Jan 2, 2017 · 8 comments
Labels
feature This issue represents a new feature or feature request rather than a bug or bug fix P5 The team acknowledges the request but does not plan to address it, it remains open for discussion

Comments

@jt-helsinki
Copy link

Bug, feature request, or proposal:

Feature request

What is the expected behavior?

<md-select ... >
    <md-option ... ></md-option>
    ...
    ...
    <md-hint>some hint text</md-hint>
</md-select>

What is the current behavior?

not supported

What is the use-case or motivation for changing an existing behavior?

A hint below the select box. This could be used (For example) as a validation message when the select is not selected. Behaviour similar to the component.

Which versions of Angular, Material, OS, browsers are affected?

Material2 v2.0.0-beta.1
Angular 2.4.1

@jelbourn jelbourn added the feature This issue represents a new feature or feature request rather than a bug or bug fix label Jan 4, 2017
@jelbourn jelbourn changed the title <md-select> requires <md-hint> Support hint text with select Jan 4, 2017
@jelbourn jelbourn added the P5 The team acknowledges the request but does not plan to address it, it remains open for discussion label Jan 4, 2017
@SherwinJames
Copy link

Is there a recommended alternate way to handle error hints for md-select (e.g. required)?

@leonardovff
Copy link

@SherwinJames look the soluction of codef0rmer in this issue #2624

@dhineshwiz
Copy link

dhineshwiz commented May 3, 2017

Can we have something like this
<div class="hint"> This is used as primary message</div>
Supported in Md-Select

@sdargaud
Copy link

sdargaud commented May 5, 2017

Please don't forget md-error.

@makdeniss
Copy link

For md-error for md-select I've done something like this:

<md-error *ngIf="type.touched && type.invalid">
          <span class="error-small-text" *ngIf="type.errors.required">
             Company Type is <strong>required</strong>
          </span>
</md-error>
.error-small-text {
  position: relative;
  top: -18px;
  font-size: 0.8em;
}

@finalxcode
Copy link

+1 @makdeniss cool

@jelbourn
Copy link
Member

This is done now that select goes in mat-form-field

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature This issue represents a new feature or feature request rather than a bug or bug fix P5 The team acknowledges the request but does not plan to address it, it remains open for discussion
Projects
None yet
Development

No branches or pull requests

8 participants