Skip to content

Support hint text with select #2498

Closed
Closed

Description

@jt-helsinki

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

Activity

  1. added
    feature
    on Jan 4, 2017
  2. changed the title [-]<md-select> requires <md-hint>[/-] [+]Support hint text with select[/+] on Jan 4, 2017
  3. added
    P5
    on Jan 4, 2017
  4. SherwinJames commented on Feb 16, 2017

    @SherwinJames

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

  5. leonardovff commented on Mar 3, 2017

    @leonardovff

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

  6. dhineshwiz commented on May 3, 2017

    @dhineshwiz

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

  7. sdargaud commented on May 5, 2017

    @sdargaud

    Please don't forget md-error.

  8. makdeniss commented on Aug 15, 2017

    @makdeniss

    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;
    }
    
  9. finalxcode commented on Aug 18, 2017

    @finalxcode

    +1 @makdeniss cool

  10. jelbourn commented on Nov 29, 2017

    @jelbourn
    Contributor

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

  11. angular-automatic-lock-bot commented on Sep 7, 2019

    @angular-automatic-lock-bot

    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.

  12. locked and limited conversation to collaborators on Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P5feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions