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

Set the column text as the title of the column header #328

Merged
merged 1 commit into from Mar 15, 2016
Merged

Set the column text as the title of the column header #328

merged 1 commit into from Mar 15, 2016

Conversation

jfremy
Copy link
Contributor

@jfremy jfremy commented Mar 11, 2016

With small columns, it's not sure the full header text can fit.
To account for this case, set the title attribute of the column header to the text of the column header.
That way, if the text is not completely visible, hovering the mouse on the header will display the text.

This makes the assumption that this.props.children is a string, but that seems to be already the case for the filters seem to expect that.

Otherwise, it might be convenient to allow manually setting the title attribute as a property of TableHeaderColumn

With small columns, it's not sure the full header text can fit.
To account for this case, set the title attribute of the column header to the text of the column header.
That way, if the text is not completely visible, hovering the mouse on the header will display the text.

This makes the assumption that this.props.children is a string, but that seems to be already the case for the filters seem to expect that.

Otherwise, it might be convenient to allow manually setting the title attribute as a property of TableHeaderColumn
@AllenFang
Copy link
Owner

LGTM

@AllenFang AllenFang merged commit 68efb43 into AllenFang:master Mar 15, 2016
@AllenFang
Copy link
Owner

Released on v2.0.1, Thanks 👍

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.

None yet

2 participants