* implement column.hidden

* add story for column.hidden

* add docs for column.hidden
This commit is contained in:
Allen
2017-09-02 02:36:26 -05:00
committed by GitHub
parent 60d4e7e5d2
commit 6f45ae7886
7 changed files with 102 additions and 0 deletions
+4
View File
@@ -4,6 +4,7 @@ Available properties in a column object:
* [dataField (**required**)](#dataField)
* [text (**required**)](#text)
* [hidden](#hidden)
* [formatter](#formatter)
* [headerFormatter](#headerFormatter)
* [formatExtraData](#formatExtraData)
@@ -57,6 +58,9 @@ dataField: 'address.city'
## <a name='text'>column.text (**required**) - [String]</a>
`text` will be apply as the column text in header column, if your header is not only text and you want to customize your header column, please check [`column.headerFormatter`](#headerFormatter)
## <a name='hidden'>column.hidden - [Bool]</a>
`hidden` allow you to hide column when `true` given.
## <a name='formatter'>column.formatter - [Function]</a>
`formatter` allow you to customize the table column and only accept a callback function which take four arguments and a JSX/String are expected for return.