Skip to content

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