Skip to content

Commit

Permalink
fixed column parameter is no longer undocumented
Browse files Browse the repository at this point in the history
  • Loading branch information
mkawalec authored and pieterv committed Apr 3, 2015
1 parent b0c7c64 commit 8be60ac
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
4 changes: 3 additions & 1 deletion docs/ColumnAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ for keys, it must be specified for each column.

type: `union(string|number)`


### `fixed`

Whether the column is fixed.
Controls if the column is fixed when scrolling in the X axis.

type: `bool`
defaultValue: `false`


### `headerRenderer`
Expand Down
5 changes: 3 additions & 2 deletions docs/ColumnGroupAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ The horizontal alignment of the table cell content.
type: `enum('left'|'center'|'right')`


### `fixed` (required)
### `fixed`

Whether the column group is fixed.
Controls if the column group is fixed when scrolling in the X axis.

type: `bool`
defaultValue: `false`


### `columnGroupData`
Expand Down
8 changes: 7 additions & 1 deletion src/FixedDataTableColumn.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ var FixedDataTableColumn = React.createClass({
]).isRequired,

/**
* Whether the column is fixed.
* Controls if the column is fixed when scrolling in the X axis.
*/
fixed: PropTypes.bool,

Expand Down Expand Up @@ -143,6 +143,12 @@ var FixedDataTableColumn = React.createClass({
isResizable: PropTypes.bool,
},

getDefaultProps() /*object*/ {
return {
fixed: false,
};
},

render() {
if (__DEV__) {
throw new Error(
Expand Down
8 changes: 7 additions & 1 deletion src/FixedDataTableColumnGroup.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var FixedDataTableColumnGroup = React.createClass({
align: PropTypes.oneOf(['left', 'center', 'right']),

/**
* Whether the column group is fixed.
* Controls if the column group is fixed when scrolling in the X axis.
*/
fixed: PropTypes.bool,

Expand Down Expand Up @@ -60,6 +60,12 @@ var FixedDataTableColumnGroup = React.createClass({
groupHeaderRenderer: PropTypes.func,
},

getDefaultProps() /*object*/ {
return {
fixed: false,
};
},

render() {
if (__DEV__) {
throw new Error(
Expand Down

0 comments on commit 8be60ac

Please sign in to comment.