Skip to content

Commit

Permalink
<Cell /> and <HeaderCell /> now have title attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
andreypopp committed Sep 8, 2014
1 parent dcea179 commit 50f290d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/Cell.js
Expand Up @@ -31,7 +31,11 @@ var Cell = React.createClass({
var content = React.isValidComponent(this.props.formatter) ?
cloneWithProps(this.props.formatter, props) :
this.props.formatter(props);
return <div className="react-grid-Cell__value">{content}</div>;
return (
<div title={content} className="react-grid-Cell__value">
{content}
</div>
);
},

getDefaultProps() {
Expand Down
6 changes: 5 additions & 1 deletion lib/HeaderCell.js
Expand Up @@ -112,7 +112,11 @@ var HeaderCell = React.createClass({
});

function simpleCellRenderer(props) {
return <div className="rex-widget-HeaderCell__value">{props.column.name}</div>;
return (
<div title={props.column.name} className="rex-widget-HeaderCell__value">
{props.column.name}
</div>
);
}

module.exports = HeaderCell;

0 comments on commit 50f290d

Please sign in to comment.