Skip to content

Commit

Permalink
add thead element around table-head component
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenSH12 committed Feb 8, 2015
1 parent 49f9c7b commit eabdf8f
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions src/table-head.js
Expand Up @@ -9,22 +9,24 @@ var TableHead = React.createClass({

render: function() {
return (
React.createElement('tr', null,
React.createElement('th', null,
React.createElement('input', {
'type': 'checkbox',
'aria-label': 'toggle all rows selected',
'checked': this.props.checked,
'onChange': this.handleChange
React.createElement('thead', null,
React.createElement('tr', null,
React.createElement('th', null,
React.createElement('input', {
'type': 'checkbox',
'aria-label': 'toggle all rows selected',
'checked': this.props.checked,
'onChange': this.handleChange
})
),
this.props.fields.map(function(field, i) {
return (
React.createElement('th', {
'key': i
}, field)
);
})
),
this.props.fields.map(function(field, i) {
return (
React.createElement('th', {
'key': i
}, field)
);
})
)
)
);
}
Expand Down

0 comments on commit eabdf8f

Please sign in to comment.