mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
react-bootstrap-table: add cols and rows options to Editable
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user