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

Add optional title attribute to options? #273

Closed
HankMcCoy opened this issue Jun 25, 2015 · 1 comment
Closed

Add optional title attribute to options? #273

HankMcCoy opened this issue Jun 25, 2015 · 1 comment

Comments

@HankMcCoy
Copy link

For my use case it would be nice to add an optional title attribute to select options. Theoretical example use:

<Select
  value="one"
  options={[
    {
      value: 'one',
      label: 'One',
      // Adds a title attribute to the option DOM element.
      title: 'The first element in this example list.'
    }
  ]}
/>

Is this something you folk would be open to? If so I'd be happy to work on a PR.

@shanecalhoun
Copy link

This is great. Just what I needed. Now it would be nice to be able to one line ellipse the text instead of wrap it but we will find a css solution for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants