react-bootstrap-table: add cols and rows options to Editable

This commit is contained in:
Ian Ker-Seymer
2016-07-26 15:36:16 -04:00
parent 56024034cc
commit 34e87e1bca
2 changed files with 7 additions and 1 deletions
@@ -23,7 +23,7 @@ function priceFormatter(cell: any, row: any) {
render(
<BootstrapTable data={products} striped={true} hover={true}>
<TableHeaderColumn dataField="id" isKey={true} dataAlign="center" dataSort={true}>Product ID</TableHeaderColumn>
<TableHeaderColumn dataField="name" dataSort={true}>Product Name</TableHeaderColumn>
<TableHeaderColumn dataField="name" dataSort={true} editable={{ type: 'textarea', rows: 10 }}>Product Name</TableHeaderColumn>
<TableHeaderColumn dataField="price" dataFormat={priceFormatter}>Product Price</TableHeaderColumn>
</BootstrapTable>,
document.getElementById("app")
+6
View File
@@ -556,6 +556,12 @@ declare module "react-bootstrap-table" {
*/
options?: any;
/**
Configuration for the textarea editable type
*/
cols?: number;
rows?: number;
}
export type FilterType = 'TextFilter' | 'RegexFilter' | 'SelectFilter' | 'NumberFilter' | 'DateFilter' | 'CustomFilter';