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

Propagate option title attributes #183

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

olaf-cloudgenix
Copy link

@olaf-cloudgenix olaf-cloudgenix commented Jun 1, 2017

What it does

Propagates any option title attributes to the generated selectBox labels.

Use case

If the available width for the selectBox is limited, and some labels have text that is too long, it may be necessary to truncate the text and show ellipses. In this scenario a title attribute with the full text may be useful. The user can hover over the truncated label and see the full text.

How to use

Just add a title attribute to the select options, e.g.

<option title="Very, very, very long option name">Very, very, very long option name</option>

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

Successfully merging this pull request may close these issues.

1 participant